public class ClusterNodeInformation extends SimpleClusterNodeInformation
| Modifier and Type | Field and Description |
|---|---|
protected java.net.URI[] |
globalRegUris
The URIs of this server cluster node or
null in case this node
is a client or is a server that is currently not running. |
protected java.net.URI[] |
interNodeCommUris
The URIs of the service for inter node communication of this cluster node
or
null if the node currently has no inter node communication
service, e. g. while restarting. |
protected long |
lastForeignUpdate
The last time the status of this cluster has been updated by a different
node or -1 if the cluster node has not been updated by a different node
yet.
|
protected long |
serverLostCommCount
How often this node has lost communications with the server since the last
server update.
|
protected long |
sinceLastForeignUpdate
The milliseconds that elapsed since the last update by a different node.
|
protected long |
sinceLastOwnUpdate
The milliseconds that elapsed since the last update by the node itself.
|
clusterName, lastOwnUpdate, nodeAddress, nodeName, runningSince, status| Constructor and Description |
|---|
ClusterNodeInformation(java.lang.String clusterName,
java.lang.String nodeName,
java.lang.String nodeAddress,
Status status,
long lastOwnUpdate,
long sinceLastOwnUpdate,
long lastForeignUpdate,
long sinceLastForeignUpdate,
long runningSince,
java.net.URI[] globalRegUris,
java.net.URI[] interNodeCommUris,
long serverLostCommCount)
Creates information for a specific cluster node.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URI[] |
getGlobalRegUris()
Gets the URIs of this server cluster node or
null in case this
node is a client or the URIs of the server cannot be retrieved (server is
not running). |
java.net.URI[] |
getInterNodeCommUris()
Gets the URIs of the service for inter node communication of this cluster
node or
null if the node currently has no inter node
communication service, e. g. while restarting. |
long |
getLastForeignUpdate()
Gets the last time the status of this cluster has been updated by a
different node or -1 if the cluster node has not been updated by a
different node yet.
|
long |
getServerLostCommCount()
Gets how often this node has lost communications with the server since the
last server update.
|
long |
getSinceLastForeignUpdate()
Gets the time in milliseconds that elapsed since the last update by a
different node.
|
long |
getSinceLastOwnUpdate()
Gets the time in milliseconds that elapsed since the last update by the
node itself.
|
getClusterName, getLastOwnUpdate, getNodeAddress, getNodeName, getRunningSince, getStatusprotected final long sinceLastOwnUpdate
protected final long lastForeignUpdate
protected final long sinceLastForeignUpdate
Long.MAX_VALUE if no different node has updated the
node.protected final java.net.URI[] globalRegUris
null in case this node
is a client or is a server that is currently not running.protected final java.net.URI[] interNodeCommUris
null if the node currently has no inter node communication
service, e. g. while restarting.protected final long serverLostCommCount
public ClusterNodeInformation(java.lang.String clusterName,
java.lang.String nodeName,
java.lang.String nodeAddress,
Status status,
long lastOwnUpdate,
long sinceLastOwnUpdate,
long lastForeignUpdate,
long sinceLastForeignUpdate,
long runningSince,
java.net.URI[] globalRegUris,
java.net.URI[] interNodeCommUris,
long serverLostCommCount)
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.sinceLastOwnUpdate - The milliseconds that elapsed since the last
update by the node itself.lastForeignUpdate - The last time the status of this cluster has been
updated by a different node or -1 if the cluster node has not been
updated by a different yet.sinceLastForeignUpdate - The milliseconds that elapsed since the last
update by a different node or Long.MAX_VALUE.runningSince - The time since when this cluster node is running or -1
if the cluster node is not running yet.globalRegUris - The URIs of this server cluster node or
null in case this node is a client.interNodeCommUris - The URIs of the service for inter node
communication of this cluster node or null if the
node currently has no inter node communication service, e. g.
while restarting.serverLostCommCount - How often this node has lost communications with
the server since the last server update.public long getSinceLastOwnUpdate()
public long getLastForeignUpdate()
public long getSinceLastForeignUpdate()
Long.MAX_VALUE if no different node
has updated the node.Long.MAX_VALUE if no different
node has updated the node.public java.net.URI[] getGlobalRegUris()
null in case this
node is a client or the URIs of the server cannot be retrieved (server is
not running).null in case
this node is a client or the URIs of the server cannot be
retrieved (server is not running).public java.net.URI[] getInterNodeCommUris()
null if the node currently has no inter node
communication service, e. g. while restarting.null if the node currently has no
inter node communication service, e. g. while restarting.public long getServerLostCommCount()