- GET_PERSONAL_NODE - Static variable in class ch.aplu.tcp.TcpNode
-
Relay request for reclaiming the nickname of the requesting node.
- GET_SERVER_STATUS - Static variable in class ch.aplu.tcp.TcpNode
-
Relay request for reclaiming the current server status.
- getAgentName() - Method in class ch.aplu.tcp.TcpAgent
-
Returns the requested agent nickname when connecting to the relay.
- getBridgeName() - Method in class ch.aplu.tcp.TcpBridge
-
Returns the requested bridge nickname.
- getClockTime() - Method in class ch.aplu.tcp.TcpAgent
-
Returns current time of internal clock synchronized with the relay's clock (in ms).
- getClockTime() - Method in class ch.aplu.tcp.TcpBridge
-
Returns current time of internal clock synchronized with the relay's clock (in ms).
- getClockTime() - Method in class ch.aplu.tcp.TcpNode
-
Returns current time of internal clock synchronized with the relay's clock (in ms).
- getDoubleValue(String) - Method in class ch.aplu.tcp.TcpProperties
-
Gets the property value with the given key as double.
- getFileInfo() - Method in class ch.aplu.tcp.TcpProperties
-
Returns the tcpjlib.properties file information.
- getIntValue(String) - Method in class ch.aplu.tcp.TcpProperties
-
Gets the property value with the given key as int.
- getNickname() - Method in class ch.aplu.tcp.TcpNode
-
Returns the requested agent nickname when connecting to the relay.
- getNodeState() - Method in class ch.aplu.tcp.TcpNode
-
Returns the node state.
- getPersonalName() - Method in class ch.aplu.tcp.TcpAgent
-
Returns the nickname attributed by the relay after successful connection.
- getPersonalName() - Method in class ch.aplu.tcp.TcpBridge
-
Returns the nickname attributed by the relay after successful connection.
- getPort() - Method in class ch.aplu.tcp.TcpAgent
-
Returns the IP port number used by the relay server.
- getPort() - Method in class ch.aplu.tcp.TcpBridge
-
Returns the IP port number used by the relay server.
- getPort() - Method in class ch.aplu.tcp.TcpNode
-
Returns the IP port number used by the relay server.
- getRelay() - Method in class ch.aplu.tcp.TcpAgent
-
Returns the IP address of the relay server.
- getRelay() - Method in class ch.aplu.tcp.TcpBridge
-
Returns the IP address of the relay server.
- getRelay() - Method in class ch.aplu.tcp.TcpNode
-
Returns the IP address of the relay server.
- getStringValue(String) - Method in class ch.aplu.tcp.TcpProperties
-
Gets the property value with the given key as string.
- getTcpNode() - Method in class ch.aplu.tcp.TcpAgent
-
Returns the TcpNode reference responsible for the connection.
- getTcpNode() - Method in class ch.aplu.tcp.TcpBridge
-
Returns the TcpNode reference responsible for the connection.
- getVersion() - Method in class ch.aplu.tcp.TcpAgent
-
Returns current version information of TcpJLib.
- getVersion() - Method in class ch.aplu.tcp.TcpBridge
-
Returns current version information of TcpJLib.
- getVersion() - Method in class ch.aplu.tcp.TcpNode
-
Returns current version information of TcpJLib.
- search() - Method in class ch.aplu.tcp.TcpProperties
-
Searches the property file.
- send(String, int...) - Method in class ch.aplu.tcp.TcpAgent
-
Send data to bridge including a destination agent indicator.
- send(String, String, int...) - Method in class ch.aplu.tcp.TcpBridge
-
Sends data to destination including the given source indicator.
- sendCommand(String, int, int...) - Method in class ch.aplu.tcp.TcpAgent
-
Send data to bridge including a destination agent indicator.
- sendCommand(String, String, int, int...) - Method in class ch.aplu.tcp.TcpBridge
-
Sends data to destination including the given source indicator.
- sendCommandToGroup(String, ArrayList<String>, int, int, int...) - Method in class ch.aplu.tcp.TcpBridge
-
Same as sendCommand(), but sends the data to all members of the given list.
- sendIntMessage(String, int...) - Method in class ch.aplu.tcp.TcpNode
-
Sends an integer array to the destination nodes (except the sending node)
by concatenating each number with a '&' separator (no trailing '&').
- sendIntMessage(int...) - Method in class ch.aplu.tcp.TcpNode
-
Sends an integer array to all node by concatenating each number
with a '&' separator (no trailing '&').
- sendMessage(String) - Method in class ch.aplu.tcp.TcpNode
-
Sends a message to all nodes (except the sending node)
in the same sessions (via the relay).
- sendMessage(String, String) - Method in class ch.aplu.tcp.TcpNode
-
Sends a message to the given destination node (via the relay).
- sendRelayRequest(String) - Method in class ch.aplu.tcp.TcpAgent
-
Sends a request to the relay.
- sendRelayRequest(String) - Method in class ch.aplu.tcp.TcpBridge
-
Sends a request to the relay.
- sendRelayRequest(String) - Method in class ch.aplu.tcp.TcpNode
-
Sends a request to the relay.
- sendSynchRequest() - Method in class ch.aplu.tcp.TcpAgent
-
Sends a clock synchronization request on a new TCP/IP channel
(not influenced by the current traffic between the relay and the node).
- sendSynchRequest() - Method in class ch.aplu.tcp.TcpBridge
-
Sends a clock synchronization request on a new TCP/IP channel
(not influenced by the current traffic between the relay and the node).
- sendSynchRequest() - Method in class ch.aplu.tcp.TcpNode
-
Sends a clock synchronization request on a new TCP/IP channel
(not influenced by the current traffic between the relay and the node).
- sendToGroup(String, ArrayList<String>, int, int...) - Method in class ch.aplu.tcp.TcpBridge
-
Same as send(), but sends the data to all members of the given list.
- split(String, String) - Static method in class ch.aplu.tcp.TcpTools
-
Splits given string with given separator string into multiple strings.
- splitToDoubleAry(String, String) - Static method in class ch.aplu.tcp.TcpTools
-
Splits a line with concatenated doubles separated by the given separator
into single integer values.
- splitToIntAry(String, String) - Static method in class ch.aplu.tcp.TcpTools
-
Splits a line with concatenated integers separated by the given separator
into single integer values.
- statusReceived(String) - Method in class ch.aplu.tcp.TcpNodeAdapter
-
Fired when the relay sends status messages.
- statusReceived(String) - Method in interface ch.aplu.tcp.TcpNodeListener
-
Fired when the relay sends status messages.
- stringToIntAry(String) - Static method in class ch.aplu.tcp.TcpTools
-
Converts a string to an integer array that can be used for transmission over
a TcpBridge, TcpAgent link.
- stripNickname(String) - Static method in class ch.aplu.tcp.TcpTools
-
Returns a nickname where the trailing (n) is removed.
- stripNickname(String, boolean) - Static method in class ch.aplu.tcp.TcpTools
-
Returns a nickname where the trailing (n) is removed.
- TcpAgent - Class in ch.aplu.tcp
-
Several agents may be running on the same host using the same port,
because they behave like HTTP clients connected to the relay server.
- TcpAgent(String, int, String, String, String) - Constructor for class ch.aplu.tcp.TcpAgent
-
Create a TcpAgent instance for communications between agents using the
given bridge.
- TcpAgent(String, String) - Constructor for class ch.aplu.tcp.TcpAgent
-
Creates a TcpAgent instance for communications between agents.
- TcpAgentAdapter - Class in ch.aplu.tcp
-
Empty implementations of the TcpAgentListener interface.
- TcpAgentAdapter() - Constructor for class ch.aplu.tcp.TcpAgentAdapter
-
- TcpAgentListener - Interface in ch.aplu.tcp
-
Declarations of event notification methods of the TcpAgent class.
- TcpBridge - Class in ch.aplu.tcp
-
A bridge acts as a TcpNode, thus seen from the network it is a HTTP client
connected to the TcpRelay server.
- TcpBridge(String, int, String, String) - Constructor for class ch.aplu.tcp.TcpBridge
-
Creates a TcpBridge instance for communications between agents.
- TcpBridge(String, String) - Constructor for class ch.aplu.tcp.TcpBridge
-
Creates a TcpBridge instance for communications between agents.
- TcpBridgeAdapter - Class in ch.aplu.tcp
-
Empty implementations of the TcpBridgeListener interface.
- TcpBridgeAdapter() - Constructor for class ch.aplu.tcp.TcpBridgeAdapter
-
- TcpBridgeListener - Interface in ch.aplu.tcp
-
Declarations of event notification methods of the TcpBridge class.
- TcpNode - Class in ch.aplu.tcp
-
TcpNode instances are interlinked via the TCP/IP protocol through a TcpRelay.
- TcpNode(String, int, String, String, int) - Constructor for class ch.aplu.tcp.TcpNode
-
Creates a TcpNode that will use the given relay listening on the given ip port.
- TcpNode(String, int, String) - Constructor for class ch.aplu.tcp.TcpNode
-
Creates a TcpNode that will use the given relay listening on the given ip port.
- TcpNode(String, int, String, int) - Constructor for class ch.aplu.tcp.TcpNode
-
Creates a TcpNode that will use the given relay listening on the given ip port.
- TcpNode(String, int) - Constructor for class ch.aplu.tcp.TcpNode
-
Creates a TcpNode that will use the given relay listening on the given ip port.
- TcpNode() - Constructor for class ch.aplu.tcp.TcpNode
-
Creates a TcpNode that will use the relay and port defined in the
TcpProperties file.
- TcpNodeAdapter - Class in ch.aplu.tcp
-
Empty implementations of the TcpNodeListener interface.
- TcpNodeAdapter() - Constructor for class ch.aplu.tcp.TcpNodeAdapter
-
- TcpNodeListener - Interface in ch.aplu.tcp
-
Declarations of event notification methods of the TcpNode class.
- TcpNodeState - Enum in ch.aplu.tcp
-
Enumeration of connection states.
- TcpProperties - Class in ch.aplu.tcp
-
Class to read library options from a property file that
may be modified as needed.
- TcpProperties() - Constructor for class ch.aplu.tcp.TcpProperties
-
- TcpTools - Class in ch.aplu.tcp
-
Declaration of some useful static helper methods.
- toIntAry(long) - Static method in class ch.aplu.tcp.TcpTools
-
Splits the given long (64 bits) into two integers (low-order 32 bits,
high-order 32 bits).
- toLong(int, int) - Static method in class ch.aplu.tcp.TcpTools
-
Merges the two given integers (low-order 32 bits, high-order 32 bits)
to a long (64 bits).