|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.comm.discovery.JPPFConnectionInformation
public class JPPFConnectionInformation
This class encapsulates the connection information for a JPPF driver. The information includes the host, class server, application and node server ports.
| Field Summary | |
|---|---|
int[] |
applicationServerPorts
The ports on which the application server is listening. |
int[] |
classServerPorts
The ports on which the class server is listening. |
String |
host
The host name. |
String |
managementHost
Host address used for JMX management and monitoring. |
int |
managementPort
Port number used for JMX management and monitoring. |
int[] |
nodeServerPorts
The ports on which the node server is listening. |
int |
recoveryPort
Port number for recovery from hardware failures. |
int |
subnetMaskLength
The length of the subnet mask for the host address. |
String |
uuid
Identifier for this object. |
| Constructor Summary | |
|---|---|
JPPFConnectionInformation()
Default constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(JPPFConnectionInformation ci)
Compare this connection information with another. |
boolean |
equals(Object obj)
Determine whether this object is equal to another. |
static JPPFConnectionInformation |
fromBytes(byte[] bytes)
Deserialize a DriverConnectionInformation object from an array of bytes. |
int |
hashCode()
Compute the hashcode of this object. |
static byte[] |
toBytes(JPPFConnectionInformation info)
Serialize a DriverConnectionInformation object to an array of bytes. |
String |
toString()
Get a string representation of this connection information object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String host
public int[] classServerPorts
public int[] nodeServerPorts
public int[] applicationServerPorts
public int managementPort
public int recoveryPort
public transient String managementHost
public String uuid
public int subnetMaskLength
| Constructor Detail |
|---|
public JPPFConnectionInformation()
| Method Detail |
|---|
public int compareTo(JPPFConnectionInformation ci)
compareTo in interface Comparable<JPPFConnectionInformation>ci - the other object to compare to.
Comparable.compareTo(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class Objectobj - the object to compare to.
Object.equals(java.lang.Object)
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class ObjectObject.toString()
public static JPPFConnectionInformation fromBytes(byte[] bytes)
throws Exception
bytes - the array of bytes to deserialize from.
DriverConnectionInformation instance.
Exception - if an error is raised while deserializing.
public static byte[] toBytes(JPPFConnectionInformation info)
throws Exception
info - the DriverConnectionInformation object to serialize to.
Exception - if an error is raised while serializing.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||