public class GroupManagerImpl extends Object implements GroupManager
Constructor and Description |
---|
GroupManagerImpl(List<Grouper<?>> groupers) |
Modifier and Type | Method and Description |
---|---|
String |
getGroup(Object key)
Get the group for a given key
|
Address |
getPrimaryOwner(String group)
It returns the primary owner of the group.
|
void |
injectDependencies(ClusteringDependentLogic clusteringDependentLogic) |
boolean |
isOwner(String group)
Checks if this node is an owner of the group.
|
boolean |
isPrimaryOwner(String group)
It checks if this node is the primary owner of the group.
|
public void injectDependencies(ClusteringDependentLogic clusteringDependentLogic)
public String getGroup(Object key)
GroupManager
getGroup
in interface GroupManager
key
- the key for which to get the grouppublic boolean isOwner(String group)
GroupManager
isOwner
in interface GroupManager
group
- the group name.true
if this node is an owner of the group, false
otherwise.public Address getPrimaryOwner(String group)
GroupManager
getPrimaryOwner
in interface GroupManager
group
- the group name.public boolean isPrimaryOwner(String group)
GroupManager
isPrimaryOwner
in interface GroupManager
group
- the group name.true
if this node is the primary owner of the group, false
otherwise.Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.