Class 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 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 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 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 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 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 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.