|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.CARepeater
public class CARepeater
CA repeater.
| Field Summary | |
|---|---|
static String |
CA_DISABLE_REPEATER
System JVM property key to disable CA repeater. |
static String |
CA_FORCE_NATIVE_REPEATER
System JVM property key to force native repeater. |
protected List |
clients
List of registered clients. |
protected DatagramSocket |
localDatagramSocket
Local unbounded DatagramSocket. |
protected Logger |
logger
Context logger. |
protected int |
repeaterPort
Repeater port. |
| Constructor Summary | |
|---|---|
CARepeater()
Constructor. |
|
CARepeater(int repeaterPort)
Constructor. |
|
| Method Summary | |
|---|---|
protected static DatagramSocket |
createDatagramSocket()
Constructs an unbound datagram socket. |
protected static DatagramSocket |
createDatagramSocket(int port,
boolean reuseAddress)
Constructs a atagram socket bound to the wildcard address on defined port. |
protected void |
fanOut(InetSocketAddress fromAddress,
ByteBuffer buffer)
|
protected void |
initialize()
Initialize CA repeater. |
protected void |
initializeLogger()
Initialize context logger. |
protected static boolean |
isRepeaterRunning(int repeaterPort)
Check if repeater is running. |
static void |
main(String[] argv)
Main entry-point. |
protected void |
process()
Process UDP requests. |
protected void |
registerNewClient(InetSocketAddress clientAddress)
|
void |
run()
|
static void |
startRepeater(int repeaterPort)
Start repeater as detached process. |
protected void |
verifyClients()
Verify all the clients. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CA_FORCE_NATIVE_REPEATER
public static final String CA_DISABLE_REPEATER
protected Logger logger
protected int repeaterPort
protected DatagramSocket localDatagramSocket
protected List clients
| Constructor Detail |
|---|
public CARepeater()
public CARepeater(int repeaterPort)
repeaterPort - repeater port.| Method Detail |
|---|
protected void initialize()
protected void initializeLogger()
public void run()
run in interface RunnableRunnable.run()protected void registerNewClient(InetSocketAddress clientAddress)
protected void fanOut(InetSocketAddress fromAddress,
ByteBuffer buffer)
protected void verifyClients()
protected void process()
protected static DatagramSocket createDatagramSocket()
throws SocketException
SocketException
protected static DatagramSocket createDatagramSocket(int port,
boolean reuseAddress)
throws SocketException
port - reuseAddress -
SocketExceptionprotected static boolean isRepeaterRunning(int repeaterPort)
repeaterPort - repeater port.
true if repeater is already running, false otherwise
public static void startRepeater(int repeaterPort)
throws Throwable
repeaterPort - repeater port.
Throwablepublic static void main(String[] argv)
argv - arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||