public class SimpleClusterNodeInformation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
clusterName
The name of this cluster.
|
protected long |
lastOwnUpdate
The last time the status of this cluster has been updated by the node
itself or -1 if the cluster node has not been updated yet.
|
protected java.lang.String |
nodeAddress
The address of this cluster node or
null in case it is not
known. |
protected java.lang.String |
nodeName
The name of this cluster node.
|
protected long |
runningSince
The time since when this cluster node is running or -1 if the cluster node
is not running yet.
|
protected Status |
status
The status of this cluster node.
|
| Constructor and Description |
|---|
SimpleClusterNodeInformation(java.lang.String clusterName,
java.lang.String nodeName,
java.lang.String nodeAddress,
Status status,
long lastOwnUpdate,
long runningSince)
Creates simple information for a specific cluster node.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClusterName()
Gets the name of this cluster.
|
long |
getLastOwnUpdate()
Gets the last time the status of this cluster has been updated by the node
itself or -1 if the cluster node has not been updated yet.
|
java.lang.String |
getNodeAddress()
Gets the address of this cluster node or
null in case it is
not known. |
java.lang.String |
getNodeName()
Gets the name of this cluster node.
|
long |
getRunningSince()
Gets the time since when this cluster node is running or -1 if the cluster
node is not running yet.
|
Status |
getStatus()
Gets the status of this cluster node.
|
protected final java.lang.String clusterName
protected final java.lang.String nodeName
protected final java.lang.String nodeAddress
null in case it is not
known.protected final Status status
protected final long lastOwnUpdate
protected final long runningSince
public SimpleClusterNodeInformation(java.lang.String clusterName,
java.lang.String nodeName,
java.lang.String nodeAddress,
Status status,
long lastOwnUpdate,
long runningSince)
clusterName - The name of this cluster.nodeName - The name of this cluster node.nodeAddress - The address of this cluster node or null in
case it is not known.status - The status of this cluster node.lastOwnUpdate - The last time the status of this cluster has been
updated by the node itself or -1 if the cluster node has not been
updated yet.runningSince - The time since when this cluster node is running or -1
if the cluster node is not running yet.public java.lang.String getClusterName()
public java.lang.String getNodeName()
public java.lang.String getNodeAddress()
null in case it is
not known.null in case it is
not known.public Status getStatus()
public long getLastOwnUpdate()
public long getRunningSince()