|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.test.framework.clocksynch.UDPClockReference
public class UDPClockReference
UDPClockReference supplies a refernce clock signal (generated from System.nanoTime()).
Responsibilities | Collaborations |
---|---|
Supply a reference clock signal. |
Field Summary | |
---|---|
protected boolean |
publish
Flag used to indicate that the time server should keep running. |
static int |
REFERENCE_PORT
Defines the port to run the clock reference on. |
protected DatagramSocket |
socket
Holds the socket to receive clock reference requests on. |
Constructor Summary | |
---|---|
UDPClockReference()
Creates a clock reference service on the standard port. |
Method Summary | |
---|---|
Thread |
getShutdownHook()
Supplies a shutdown hook. |
static void |
main(String[] args)
For testing purposes. |
void |
run()
Implements the run loop for this reference time server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REFERENCE_PORT
protected DatagramSocket socket
protected boolean publish
Constructor Detail |
---|
public UDPClockReference()
Method Detail |
---|
public void run()
TIMEOUT
), the run
loop will check if the publish
flag has been cleared, and terminate the reference time service if so.
run
in interface Runnable
public Thread getShutdownHook()
getShutdownHook
in interface org.apache.qpid.junit.extensions.ShutdownHookable
public static void main(String[] args)
args
- None.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |