Class SimpleClusterNodeInformation
- java.lang.Object
-
- de.aristaflow.adept2.model.cluster.SimpleClusterNodeInformation
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusterNodeInformation
public class SimpleClusterNodeInformation extends Object implements Serializable
This class provides partial information concerning a cluster node. The information may either be from a database or provided via communication.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclusterNameThe name of this cluster.protected longlastOwnUpdateThe 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 StringnodeAddressThe address of this cluster node ornullin case it is not known.protected StringnodeNameThe name of this cluster node.protected longrunningSinceThe time since when this cluster node is running or -1 if the cluster node is not running yet.protected StatusstatusThe status of this cluster node.
-
Constructor Summary
Constructors Constructor Description SimpleClusterNodeInformation(String clusterName, String nodeName, String nodeAddress, Status status, long lastOwnUpdate, long runningSince)Creates simple information for a specific cluster node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClusterName()Gets the name of this cluster.longgetLastOwnUpdate()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.StringgetNodeAddress()Gets the address of this cluster node ornullin case it is not known.StringgetNodeName()Gets the name of this cluster node.longgetRunningSince()Gets the time since when this cluster node is running or -1 if the cluster node is not running yet.StatusgetStatus()Gets the status of this cluster node.
-
-
-
Field Detail
-
clusterName
protected final String clusterName
The name of this cluster.
-
nodeName
protected final String nodeName
The name of this cluster node.
-
nodeAddress
protected final String nodeAddress
The address of this cluster node ornullin case it is not known.
-
status
protected final Status status
The status of this cluster node.
-
lastOwnUpdate
protected final 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.
-
runningSince
protected final long runningSince
The time since when this cluster node is running or -1 if the cluster node is not running yet.
-
-
Constructor Detail
-
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 Detail
-
getClusterName
public String getClusterName()
Gets the name of this cluster.- Returns:
- The name of this cluster.
-
getNodeName
public String getNodeName()
Gets the name of this cluster node.- Returns:
- The name of this cluster node.
-
getNodeAddress
public String 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
public Status 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.
-
-