public interface TcpBridgeListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
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 |
notifyRelayConnection(boolean connected)
Fired when the connection to the relay is established or broken.
|
void |
pipeRequest(java.lang.String source,
java.lang.String destination,
int[] data)
Fired when the bridge gets data from an agent.
|
void pipeRequest(java.lang.String source, java.lang.String destination, int[] data)
source
- the agent that sends the datadestination
- the node name that the source agent indicates as destinationdata
- the data as integer array of any lenghtvoid notifyRelayConnection(boolean connected)
connected
- true, if the connection is established; otherwise falsevoid notifyAgentConnection(java.lang.String agentName, boolean connected)
agentName
- the nickname of the agent that connects or disconnectsconnected
- true, if the connection is established; otherwise false