|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.management.JPPFManagementInfo
public class JPPFManagementInfo
Instances of this class encapsulate the information required to access the JMX server of a node.
| Field Summary | |
|---|---|
static int |
DRIVER
DRIVER information type. |
static int |
NODE
Node information type. |
| Constructor Summary | |
|---|---|
JPPFManagementInfo(String host,
int port,
String id)
Initialize this information with the specified parameters, using NODE as type. |
|
JPPFManagementInfo(String host,
int port,
String id,
int type)
Initialize this information with the specified parameters. |
|
| Method Summary | |
|---|---|
int |
compareTo(JPPFManagementInfo o)
Compare this object with an other. |
boolean |
equals(Object obj)
Compare this object with another for equality. |
String |
getHost()
Get the host on which the node is running. |
String |
getId()
Get the unique id for the node's mbean server. |
int |
getPort()
Get the port on which the node's JMX server is listening. |
JPPFSystemInformation |
getSystemInfo()
Get the system information associated with the node at the time of the initial connection. |
int |
getType()
Get the type of component this info is for. |
int |
hashCode()
Get the hashcode for this instance. |
boolean |
isDriver()
Determine whether this information represents a driver, connected as a peer to the driver from which this information is obtained. |
boolean |
isNode()
Determine whether this information represents a real node. |
void |
setSystemInfo(JPPFSystemInformation systemInfo)
Set the system information associated with the node at the time of the initial connection. |
String |
toString()
Get a string representation of this node information. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DRIVER
public static final int NODE
| Constructor Detail |
|---|
public JPPFManagementInfo(String host,
int port,
String id)
NODE as type.
host - the host on which the node is running.port - the port on which the node's JMX server is listening.id - unique id for the node's mbean server.
public JPPFManagementInfo(String host,
int port,
String id,
int type)
host - the host on which the node is running.port - the port on which the node's JMX server is listening.id - unique id for the node's mbean server.type - the type of component this info is for, must be one of NODE or DRIVER.| Method Detail |
|---|
public String getHost()
public int getPort()
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 int compareTo(JPPFManagementInfo o)
compareTo in interface Comparable<JPPFManagementInfo>o - the other object to compare to.
Comparable.compareTo(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public JPPFSystemInformation getSystemInfo()
JPPFSystemInformation instance.public void setSystemInfo(JPPFSystemInformation systemInfo)
systemInfo - a JPPFSystemInformation instance.public String getId()
public int getType()
NODE or DRIVER.public boolean isNode()
public boolean isDriver()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||