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 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 String
nodeAddress
The address of this cluster node ornull
in case it is not known.protected 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 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 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.String
getNodeAddress()
Gets the address of this cluster node ornull
in case it is not known.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.
-
-
-
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 ornull
in 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 ornull
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.
-
-
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 ornull
in case it is not known.- Returns:
- The address of this cluster node or
null
in 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.
-
-