Class SimpleClusterNodeInformation
java.lang.Object
de.aristaflow.adept2.model.cluster.SimpleClusterNodeInformation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusterNodeInformation
This class provides partial information concerning a cluster node. The
information may either be from a database or provided via communication.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe name of this cluster.protected final longThe 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 final StringThe address of this cluster node ornullin case it is not known.protected final StringThe name of this cluster node.protected final longThe time since when this cluster node is running or -1 if the cluster node is not running yet.protected final StatusThe status of this cluster node. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleClusterNodeInformation(String clusterName, String nodeName, String nodeAddress, Status status, long lastOwnUpdate, long runningSince) Creates simple information for a specific cluster node. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of this cluster.longGets 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.Gets the address of this cluster node ornullin case it is not known.Gets the name of this cluster node.longGets the time since when this cluster node is running or -1 if the cluster node is not running yet.Gets the status of this cluster node.
-
Field Details
-
clusterName
The name of this cluster. -
nodeName
The name of this cluster node. -
nodeAddress
The address of this cluster node ornullin case it is not known. -
status
The status of this cluster node. -
lastOwnUpdate
protected final long lastOwnUpdateThe 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
protected final long runningSinceThe time since when this cluster node is running or -1 if the cluster node is not running yet.
-
-
Constructor Details
-
SimpleClusterNodeInformation
public SimpleClusterNodeInformation(String clusterName, String nodeName, String nodeAddress, Status status, long lastOwnUpdate, long runningSince) Creates simple information for a specific cluster node.- Parameters:
clusterName- The name of this cluster.nodeName- The name of this cluster node.nodeAddress- The address of this cluster node ornullin 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.
-
-
Method Details
-
getClusterName
Gets the name of this cluster.- Returns:
- The name of this cluster.
-
getNodeName
Gets the name of this cluster node.- Returns:
- The name of this cluster node.
-
getNodeAddress
Gets the address of this cluster node ornullin case it is not known.- Returns:
- The address of this cluster node or
nullin case it is not known.
-
getStatus
Gets the status of this cluster node.- Returns:
- The status of this cluster node.
-
getLastOwnUpdate
public 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.- Returns:
- 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.
-
getRunningSince
public long getRunningSince()Gets the time since when this cluster node is running or -1 if the cluster node is not running yet.- Returns:
- The time since when this cluster node is running or -1 if the cluster node is not running yet.
-