Class NodeId

  • All Implemented Interfaces:
    java.lang.Comparable<NodeId>

    public final class NodeId
    extends Identifier<java.lang.String>
    implements java.lang.Comparable<NodeId>
    Controller cluster identity.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeId​(java.lang.String id)
      Creates a new cluster node identifier from the specified string.
    • Constructor Detail

      • NodeId

        public NodeId​(java.lang.String id)
        Creates a new cluster node identifier from the specified string.
        Parameters:
        id - string identifier
    • Method Detail

      • nodeId

        public static NodeId nodeId​(java.lang.String id)
        Creates a new cluster node identifier from the specified string.
        Parameters:
        id - string identifier
        Returns:
        node id
      • compareTo

        public int compareTo​(NodeId that)
        Specified by:
        compareTo in interface java.lang.Comparable<NodeId>