Class 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.
    • Constructor Detail

      • RoleInfo

        public RoleInfo​(NodeId master,
                        java.util.List<NodeId> backups)
      • RoleInfo

        public RoleInfo()
    • Method Detail

      • master

        public NodeId master()
      • backups

        public java.util.List<NodeId> backups()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object