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)
GroupManagergetGroup in interface GroupManagerkey - the key for which to get the grouppublic boolean isOwner(String group)
GroupManagerisOwner in interface GroupManagergroup - the group name.true if this node is an owner of the group, false otherwise.public Address getPrimaryOwner(String group)
GroupManagergetPrimaryOwner in interface GroupManagergroup - the group name.public boolean isPrimaryOwner(String group)
GroupManagerisPrimaryOwner in interface GroupManagergroup - the group name.true if this node is the primary owner of the group, false otherwise.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.