cgl.narada.benchmark.nbntp
Class NtpServer
java.lang.Object
java.lang.Thread
cgl.narada.benchmark.nbntp.NtpServer
- All Implemented Interfaces:
- Runnable
public class NtpServer
- extends Thread
Runs as server and provides adjusted time value. This class should be used
when testing the client discrepancy.
|
Constructor Summary |
NtpServer()
Generates a new NtpServer object. |
NtpServer(int port1)
Generates a new NtpServer object. |
|
Method Summary |
static void |
main(String[] argv)
MAin class |
void |
run()
Run method |
void |
setBuffer(int start,
int end,
byte[] tbuffer,
byte[] data)
Sets buffer entries from start to end-1 with the given data array |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
NtpServer
public NtpServer()
- Generates a new NtpServer object.
NtpServer
public NtpServer(int port1)
- Generates a new NtpServer object.
- Parameters:
port1 - int - server port number
setBuffer
public void setBuffer(int start,
int end,
byte[] tbuffer,
byte[] data)
- Sets buffer entries from start to end-1 with the given data array
- Parameters:
start - int - start valueend - int - end valuetbuffer - byte[] - bufferdata - byte[] - data array to be copied
main
public static void main(String[] argv)
throws Exception
- MAin class
- Parameters:
argv - int - port number
- Throws:
Exception
run
public void run()
- Run method
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
For comments and suggestions please send
e-mail to
The NaradaBrokering Project