A C D G I M N P S T V 

A

addTcpAgentListener(TcpAgentListener) - Method in class ch.aplu.tcp.TcpAgent
Registers a TcpAgentListener that reports data reception and connection state changes.
addTcpBridgeListener(TcpBridgeListener) - Method in class ch.aplu.tcp.TcpBridge
Registers a TcpBridgeListener that pipes the data and reports connection state changes.
addTcpNodeListener(TcpNodeListener) - Method in class ch.aplu.tcp.TcpNode
Registers a TcpNodeListener to get connection and data notifications.

C

ch.aplu.tcp - package ch.aplu.tcp
Aim: Computer nodes interlinked by TCP/IP running behind a firewall (see Description for more information).
connect(String, String, int, int, int) - Method in class ch.aplu.tcp.TcpNode
If the connect state is TcpNodeState.DISCONNECTED, sets the state to TcpNodeState.CONNECTING and lauches a connection trial, then returns.
connect(String, String) - Method in class ch.aplu.tcp.TcpNode
Same as connect(sessionID, nickname, 1, 1, 1):
connectToRelay(String, int) - Method in class ch.aplu.tcp.TcpAgent
Connects the agent to the tunneling relay, sessionID, requested nickname and timeout.
connectToRelay(String) - Method in class ch.aplu.tcp.TcpAgent
Same as connectToRelay(agentName, timeout), but waits infinitely for connection.
connectToRelay(int) - Method in class ch.aplu.tcp.TcpBridge
Connects to the tunneling relay given sessionID and timeout.
connectToRelay() - Method in class ch.aplu.tcp.TcpBridge
Same as connectToRelay(timeout), but waits infinitely for connection.

D

dataReceived(String, int[]) - Method in class ch.aplu.tcp.TcpAgentAdapter
Fired when the agent receives data from the bridge
dataReceived(String, int[]) - Method in interface ch.aplu.tcp.TcpAgentListener
Fired when the agent receives data from the bridge
delay(long) - Static method in class ch.aplu.tcp.TcpTools
Halts the current thread for the given amount of time (in ms)
disconnect() - Method in class ch.aplu.tcp.TcpAgent
Disconnects the agent from the tunneling relay.
disconnect() - Method in class ch.aplu.tcp.TcpBridge
Disconnects the bridge from the relay.
disconnect() - Method in class ch.aplu.tcp.TcpNode
Disconnects from the relay.

G

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.

I

intAryToString(int[]) - Static method in class ch.aplu.tcp.TcpTools
Converts an integer array to a string to restore string data transmitted over a TcpBridge, TcpAgent link.
intAryToString(int[], int) - Static method in class ch.aplu.tcp.TcpTools
Converts an integer array to a string to restore string data transmitted over a TcpBridge, TcpAgent link.
intAryToString(int[], int, int) - Static method in class ch.aplu.tcp.TcpTools
Converts an integer array to a string to restore string data transmitted over a TcpBridge, TcpAgent link.
isBridgeConnected() - Method in class ch.aplu.tcp.TcpAgent
Returns true, if the bridge is connected to the relay.
isConnected() - Method in class ch.aplu.tcp.TcpAgent
Returns true, if the connection to the relay is established.
isConnected() - Method in class ch.aplu.tcp.TcpBridge
Checks if the bridge is connected to the relay.

M

messageReceived(String, String) - Method in class ch.aplu.tcp.TcpNodeAdapter
Fired when the node receives a message from another node (via the relay).
messageReceived(String, String) - Method in interface ch.aplu.tcp.TcpNodeListener
Fired when the node receives a message from another node (via the relay).

N

nodeStateChanged(TcpNodeState) - Method in class ch.aplu.tcp.TcpNodeAdapter
Fired when the connection state changes.
nodeStateChanged(TcpNodeState) - Method in interface ch.aplu.tcp.TcpNodeListener
Fired when the connection state changes.
notifyAgentConnection(String, boolean) - Method in class ch.aplu.tcp.TcpAgentAdapter
Fired when a new agent in the same session connects or an already connected agent disconnects.
notifyAgentConnection(String, boolean) - Method in interface ch.aplu.tcp.TcpAgentListener
Fired when a new agent in the same session connects or an already connected agent disconnects.
notifyAgentConnection(String, boolean) - Method in class ch.aplu.tcp.TcpBridgeAdapter
Fired when a new agent in the same session connects or an already connected agent disconnects.
notifyAgentConnection(String, boolean) - Method in interface ch.aplu.tcp.TcpBridgeListener
Fired when a new agent in the same session connects or an already connected agent disconnects.
notifyBridgeConnection(boolean) - Method in class ch.aplu.tcp.TcpAgentAdapter
Fired when the bridge connects or disconnects.
notifyBridgeConnection(boolean) - Method in interface ch.aplu.tcp.TcpAgentListener
Fired when the bridge connects or disconnects.
notifyRelayConnection(boolean) - Method in class ch.aplu.tcp.TcpAgentAdapter
Fired when the connection to the relay is established or broken.
notifyRelayConnection(boolean) - Method in interface ch.aplu.tcp.TcpAgentListener
Fired when the connection to the relay is established or broken.
notifyRelayConnection(boolean) - Method in class ch.aplu.tcp.TcpBridgeAdapter
Fired when the connection to the relay is established or broken.
notifyRelayConnection(boolean) - Method in interface ch.aplu.tcp.TcpBridgeListener
Fired when the connection to the relay is established or broken.

P

PackageInfo - Class in ch.aplu.tcp
Class to provide the current package version.
PackageInfo() - Constructor for class ch.aplu.tcp.PackageInfo
 
pipeRequest(String, String, int[]) - Method in class ch.aplu.tcp.TcpBridgeAdapter
Fired when the bridge gets data from an agent.
pipeRequest(String, String, int[]) - Method in interface ch.aplu.tcp.TcpBridgeListener
Fired when the bridge gets data from an agent.

S

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.

T

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).

V

valueOf(String) - Static method in enum ch.aplu.tcp.TcpNodeState
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.aplu.tcp.TcpNodeState
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION - Static variable in class ch.aplu.tcp.PackageInfo
Current version of package.
A C D G I M N P S T V