|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuddyLocator
Buddy Locators help the BuddyManager
select buddies for its buddy group.
Method Summary | |
---|---|
BuddyReplicationConfig.BuddyLocatorConfig |
getConfig()
Gets the configuration for this BuddyLocator. |
void |
init(BuddyReplicationConfig.BuddyLocatorConfig config)
Initialize this BuddyLocator . |
List<org.jgroups.Address> |
locateBuddies(Map<org.jgroups.Address,String> buddyPoolMap,
List<org.jgroups.Address> currentMembership,
org.jgroups.Address dataOwner)
Choose a set of buddies for the given node. |
Method Detail |
---|
BuddyReplicationConfig.BuddyLocatorConfig getConfig()
null
. If init(org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig)
has not been called or null
was passed to it, the
returned value should be the default config for the
given BuddyLocator implementation.void init(BuddyReplicationConfig.BuddyLocatorConfig config)
BuddyLocator
.
config
- configuration for this BuddyLocator
. May be
null
, in which case the implementation should
use its default configuration.List<org.jgroups.Address> locateBuddies(Map<org.jgroups.Address,String> buddyPoolMap, List<org.jgroups.Address> currentMembership, org.jgroups.Address dataOwner)
buddyPoolMap
- Map mapping nodes in the cluster to
the "buddy pool" they have identified themselves as
belonging too. A BuddyLocator implementation can use
this information to preferentially assign buddies from
the same buddy pool as dataOwner
. May be
null
if buddy pools aren't configured.currentMembership
- List of the current cluster membersdataOwner
- Address of the node for which buddies should be selected
dataOwner
. Will not be null
, may
be empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |