Package org.onosproject.cluster
Class NodeId
- java.lang.Object
-
- org.onlab.util.Identifier<String>
-
- org.onosproject.cluster.NodeId
-
- All Implemented Interfaces:
Comparable<NodeId>
public final class NodeId extends Identifier<String> implements Comparable<NodeId>
Controller cluster identity.
-
-
Field Summary
-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(NodeId that)
static NodeId
nodeId(String id)
Creates a new cluster node identifier from the specified string.-
Methods inherited from class org.onlab.util.Identifier
equals, hashCode, id, toString
-
-
-
-
Constructor Detail
-
NodeId
public NodeId(String id)
Creates a new cluster node identifier from the specified string.- Parameters:
id
- string identifier
-
-