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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
    The name of this cluster.
    protected final long
    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 final String
    The address of this cluster node or null in case it is not known.
    protected final String
    The name of this cluster node.
    protected final long
    The time since when this cluster node is running or -1 if the cluster node is not running yet.
    protected final 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

    Modifier and Type
    Method
    Description
    Gets the name of this cluster.
    long
    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.
    Gets the address of this cluster node or null in case it is not known.
    Gets the name of this cluster node.
    long
    Gets 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 or null 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 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 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.
  • Method Details

    • 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 or null 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.