|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.management.NodeInfo
public class NodeInfo
Management information about a single node.
| Constructor Summary | |
|---|---|
NodeInfo(String host,
long id,
Node.Health health,
long backup,
int jmxPort)
Creates a NodeInfo object. |
|
| Method Summary | |
|---|---|
long |
getBackup()
Returns the node id of the backup node for this node, or -1 if
no backup is assigned. |
Node.Health |
getHealth()
Returns the node health. |
String |
getHost()
Returns the host name the node is running on. |
long |
getId()
Returns the unique node identifier, which is assigned internally. |
int |
getJmxPort()
Returns the port JMX is listening on for remote connections, or -1 if only local JMX connections are allowed. |
boolean |
isLive()
Returns whether the node is alive or failed. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@ConstructorProperties(value={"host","id","health","backup","jmxPort"})
public NodeInfo(String host,
long id,
Node.Health health,
long backup,
int jmxPort)
host - the host name of the machineid - the unique identifier for this nodehealth - the node's healthbackup - the backup node for this nodejmxPort - the port for JMX remote connections| Method Detail |
|---|
public String getHost()
public long getId()
public Node.Health getHealth()
public boolean isLive()
true if the node is alivepublic long getBackup()
-1 if
no backup is assigned.
-1 if no backup
is assigned.public int getJmxPort()
-1 if only local JMX connections are allowed.
-1 if only local JMX connections are allowedpublic String toString()
toString in class Object
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||