Package org.onosproject.cluster
Class RoleInfo
- java.lang.Object
-
- org.onosproject.cluster.RoleInfo
-
public class RoleInfo extends java.lang.Object
An immutable container for role information for a device, within the current cluster. Role attributes include current master and a preference-ordered list of backup nodes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NodeId>
backups()
boolean
equals(java.lang.Object other)
int
hashCode()
NodeId
master()
java.lang.String
toString()
-
-
-
Method Detail
-
master
public NodeId master()
-
backups
public java.util.List<NodeId> backups()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-