Package org.onosproject.cluster
Class RoleInfo
- java.lang.Object
-
- org.onosproject.cluster.RoleInfo
-
public class RoleInfo extends java.lang.ObjectAn 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()booleanequals(java.lang.Object other)inthashCode()NodeIdmaster()java.lang.StringtoString()
-
-
-
Method Detail
-
master
public NodeId master()
-
backups
public java.util.List<NodeId> backups()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-