Class DisconnectedClusterNode

  • All Implemented Interfaces:
    ClusterNode

    public class DisconnectedClusterNode
    extends java.lang.Object
    implements ClusterNode
    ClusterNode which copies a disconnected ClusterNode without keeping any reference to the original one.
    Author:
    Ludovic Orban
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHostname()
      Get the host name of the node
      java.lang.String getId()
      Get a unique (per cluster) identifier for this node.
      java.lang.String getIp()
      Get the IP address of the node
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisconnectedClusterNode

        public DisconnectedClusterNode​(ClusterNode node)
        Constructor accepting the disconnected node
        Parameters:
        node - the node to copy
    • Method Detail

      • getId

        public java.lang.String getId()
        Get a unique (per cluster) identifier for this node.
        Specified by:
        getId in interface ClusterNode
        Returns:
        Unique per cluster identifier
      • getHostname

        public java.lang.String getHostname()
        Get the host name of the node
        Specified by:
        getHostname in interface ClusterNode
        Returns:
        Host name of node
      • getIp

        public java.lang.String getIp()
        Get the IP address of the node
        Specified by:
        getIp in interface ClusterNode
        Returns:
        IP address of node