Class GroupManagerImpl
- java.lang.Object
-
- org.infinispan.distribution.group.impl.GroupManagerImpl
-
- All Implemented Interfaces:
GroupManager
public class GroupManagerImpl extends Object implements GroupManager
-
-
Constructor Summary
Constructors Constructor Description GroupManagerImpl(List<Grouper<?>> groupers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getGroup(Object key)
Get the group for a given keyAddress
getPrimaryOwner(Object group)
It returns the primary owner of the group.boolean
isOwner(Object group)
Checks if this node is an owner of the group.boolean
isPrimaryOwner(Object group)
It checks if this node is the primary owner of the group.void
start()
-
-
-
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 interfaceGroupManager
- 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 interfaceGroupManager
- 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 interfaceGroupManager
- 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 interfaceGroupManager
- Parameters:
group
- the group name.- Returns:
true
if this node is the primary owner of the group,false
otherwise.
-
-