public class TcpAgentAdapter extends java.lang.Object implements TcpAgentListener
| Constructor and Description |
|---|
TcpAgentAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
dataReceived(java.lang.String source,
int[] data)
Fired when the agent receives data from the bridge
|
void |
notifyAgentConnection(java.lang.String agentName,
boolean connected)
Fired when a new agent in the same session connects or an already
connected agent disconnects.
|
void |
notifyBridgeConnection(boolean connected)
Fired when the bridge connects or disconnects.
|
void |
notifyRelayConnection(boolean connected)
Fired when the connection to the relay is established or broken.
|
public void dataReceived(java.lang.String source,
int[] data)
dataReceived in interface TcpAgentListenersource - the node name that the bridge indicates as data sourcedata - the data as integer array of any lenghtpublic void notifyRelayConnection(boolean connected)
notifyRelayConnection in interface TcpAgentListenerconnected - true, if the connection is established; otherwise falsepublic void notifyAgentConnection(java.lang.String agentName,
boolean connected)
notifyAgentConnection in interface TcpAgentListeneragentName - the nickname of the agent that connects or disconnectsconnected - true, if the connection is established; otherwise falsepublic void notifyBridgeConnection(boolean connected)
notifyBridgeConnection in interface TcpAgentListenerconnected - true, if the connection is established; otherwise false