Class GroupManagerImpl

    • Constructor Detail

      • GroupManagerImpl

        public GroupManagerImpl​(List<Grouper<?>> groupers)
    • Method Detail

      • start

        public void start()
      • getGroup

        public Object getGroup​(Object key)
        Description copied from interface: GroupManager
        Get the group for a given key
        Specified by:
        getGroup in interface GroupManager
        Parameters:
        key - the key for which to get the group
        Returns:
        the group, or null if no group is defined for the key
      • isOwner

        public boolean isOwner​(Object group)
        Description copied from interface: GroupManager
        Checks if this node is an owner of the group.
        Specified by:
        isOwner in interface GroupManager
        Parameters:
        group - the group name.
        Returns:
        true if this node is an owner of the group, false otherwise.
      • getPrimaryOwner

        public Address getPrimaryOwner​(Object group)
        Description copied from interface: GroupManager
        It returns the primary owner of the group.
        Specified by:
        getPrimaryOwner in interface GroupManager
        Parameters:
        group - the group name.
        Returns:
        the primary owner of the group.
      • isPrimaryOwner

        public boolean isPrimaryOwner​(Object group)
        Description copied from interface: GroupManager
        It checks if this node is the primary owner of the group.
        Specified by:
        isPrimaryOwner in interface GroupManager
        Parameters:
        group - the group name.
        Returns:
        true if this node is the primary owner of the group, false otherwise.