jgnash.message
Class MessageBusRemoteClient
java.lang.Object
jgnash.message.MessageBusRemoteClient
class MessageBusRemoteClient
- extends java.lang.Object
Remote message bus client
- Version:
- $Id$
- Author:
- Craig Cavanaugh
|
Field Summary |
private static java.lang.String |
CONNECTION_TIMEOUT
|
private java.lang.String |
host
|
private org.slf4j.Logger |
logger
|
private int |
port
|
private org.apache.mina.common.IoSession |
session
|
private com.thoughtworks.xstream.XStream |
xstream
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
private java.lang.String host
port
private int port
logger
private org.slf4j.Logger logger
session
private org.apache.mina.common.IoSession session
CONNECTION_TIMEOUT
private static final java.lang.String CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
xstream
private com.thoughtworks.xstream.XStream xstream
MessageBusRemoteClient
public MessageBusRemoteClient(java.lang.String host,
int port)
setConnectionTimeout
public static void setConnectionTimeout(int timeout)
getConnectionTimeout
private static int getConnectionTimeout()
connectToServer
public boolean connectToServer()
disconnectFromServer
public void disconnectFromServer()
sendRemoteMessage
public void sendRemoteMessage(Message message)
processRemoteMessage
private void processRemoteMessage(Message message)
- Takes a remote message and forces remote updates before sending the message
to the MessageBus to notify UI components of changes.
- Parameters:
message - Message to process and send