Method Summary |
|
public synchronized int | bindServer() Binds server to listen socket port. |
public int | getSyncPortNumber() Returns socket port to be used for connection. |
public synchronized boolean | receiveMessage(String message) Receives message from synchronization channel and compares it with the
expected message .
Parameters: message - expected message. |
public synchronized String | receiveMessage() Receives message from synchronization channel. |
public synchronized String | receiveMessageWithoutException(String invoker) Receives message from synchronization channel without Exception. |
public synchronized void | sendMessage(String message) Sends specified message to synchronization channel. |
public synchronized void | startClient() Attaches for sync connection from client side.. |
public synchronized void | startServer() Accepts sync connection form server side. |
public void | stop() Stops synchronization work. |