Package org.jppf.utils
Class JPPFIdentifiers
java.lang.Object
org.jppf.utils.JPPFIdentifiers
Channel identifiers sent over the network as part of the handshaking with a JPPF server.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier for an acceptor channel.static final intIdentifier for the class loader channel of a client.static final intIdentifier for a client-driver heartbeat connection.static final intIdentifier for the job data channel of a client.static final intIdentifier for a JMX remote channel.static final intIdentifier for the class loader channel of a node.static final intIdentifier for a nodet-driver heartbeat connection.static final intIdentifier for the job data channel of a node.static final intIdentifier for a driver-tot-driver heartbeat connection.static final intIdentifier for an unidentified channel. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringasString(int id) Get an identifier as a string.static JPPFChannelDescriptordescriptorFor(int identifier) Retrieve the JPPF channel descriptor for the specified channel identifier.static StringserverName(int id) Get a server name for the psecified identifier.
-
Field Details
-
UNKNOWN
public static final int UNKNOWNIdentifier for an unidentified channel.- See Also:
-
PEER_HEARTBEAT_CHANNEL
public static final int PEER_HEARTBEAT_CHANNELIdentifier for a driver-tot-driver heartbeat connection.- See Also:
-
CLIENT_HEARTBEAT_CHANNEL
public static final int CLIENT_HEARTBEAT_CHANNELIdentifier for a client-driver heartbeat connection.- See Also:
-
NODE_HEARTBEAT_CHANNEL
public static final int NODE_HEARTBEAT_CHANNELIdentifier for a nodet-driver heartbeat connection.- See Also:
-
JMX_REMOTE_CHANNEL
public static final int JMX_REMOTE_CHANNELIdentifier for a JMX remote channel.- See Also:
-
ACCEPTOR_CHANNEL
public static final int ACCEPTOR_CHANNELIdentifier for an acceptor channel.- See Also:
-
CLIENT_JOB_DATA_CHANNEL
public static final int CLIENT_JOB_DATA_CHANNELIdentifier for the job data channel of a client.- See Also:
-
CLIENT_CLASSLOADER_CHANNEL
public static final int CLIENT_CLASSLOADER_CHANNELIdentifier for the class loader channel of a client.- See Also:
-
NODE_JOB_DATA_CHANNEL
public static final int NODE_JOB_DATA_CHANNELIdentifier for the job data channel of a node.- See Also:
-
NODE_CLASSLOADER_CHANNEL
public static final int NODE_CLASSLOADER_CHANNELIdentifier for the class loader channel of a node.- See Also:
-
-
Constructor Details
-
JPPFIdentifiers
public JPPFIdentifiers()
-
-
Method Details
-
asString
Get an identifier as a string.- Parameters:
id- the id to lookup.- Returns:
- a readable string for the id.
-
serverName
Get a server name for the psecified identifier.- Parameters:
id- the id to lookup.- Returns:
- a readable string for the server name.
-
descriptorFor
Retrieve the JPPF channel descriptor for the specified channel identifier.- Parameters:
identifier- the channel identifier.- Returns:
- a corresponding
JPPFChannelDescriptorinstance.
-