Class NodeId

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

    public final class NodeId
    extends org.onlab.util.Identifier<java.lang.String>
    implements java.lang.Comparable<NodeId>
    Controller cluster identity.
    • Field Summary

      • Fields inherited from class org.onlab.util.Identifier

        identifier
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(NodeId that)  
      static NodeId nodeId​(java.lang.String id)
      Creates a new cluster node identifier from the specified string.
      • Methods inherited from class org.onlab.util.Identifier

        equals, hashCode, id, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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>