|
||||||||||
| 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 java.lang.String |
CA_DISABLE_REPEATER
System JVM property key to disable CA repeater. |
static java.lang.String |
CA_FORCE_NATIVE_REPEATER
System JVM property key to force native repeater. |
protected java.util.List |
clients
List of registered clients. |
protected java.net.DatagramSocket |
localDatagramSocket
Local unbounded DatagramSocket. |
protected java.util.logging.Logger |
logger
Context logger. |
protected int |
repeaterPort
Repeater port. |
| Constructor Summary | |
|---|---|
CARepeater()
Constructor. |
|
CARepeater(int repeaterPort)
Constructor. |
|
| Method Summary | |
|---|---|
protected static java.net.DatagramSocket |
createDatagramSocket()
Constructs an unbound datagram socket. |
protected static java.net.DatagramSocket |
createDatagramSocket(int port,
boolean reuseAddress)
Constructs a atagram socket bound to the wildcard address on defined port. |
protected void |
fanOut(java.net.InetSocketAddress fromAddress,
java.nio.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(java.lang.String[] argv)
Main entry-point. |
protected void |
process()
Process UDP requests. |
protected void |
registerNewClient(java.net.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 java.lang.String CA_FORCE_NATIVE_REPEATER
public static final java.lang.String CA_DISABLE_REPEATER
protected java.util.logging.Logger logger
protected int repeaterPort
protected java.net.DatagramSocket localDatagramSocket
protected java.util.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 java.lang.RunnableRunnable.run()protected void registerNewClient(java.net.InetSocketAddress clientAddress)
protected void fanOut(java.net.InetSocketAddress fromAddress,
java.nio.ByteBuffer buffer)
protected void verifyClients()
protected void process()
protected static java.net.DatagramSocket createDatagramSocket()
throws java.net.SocketException
java.net.SocketException
protected static java.net.DatagramSocket createDatagramSocket(int port,
boolean reuseAddress)
throws java.net.SocketException
port - reuseAddress -
java.net.SocketExceptionprotected static boolean isRepeaterRunning(int repeaterPort)
repeaterPort - repeater port.
true if repeater is already running, false otherwise
public static void startRepeater(int repeaterPort)
throws java.lang.Throwable
repeaterPort - repeater port.
java.lang.Throwablepublic static void main(java.lang.String[] argv)
argv - arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||