|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.buddyreplication.BuddyManager
public class BuddyManager
Class that manages buddy replication groups.
Field Summary | |
---|---|
static java.lang.String |
BUDDY_BACKUP_SUBTREE
Constants representng the buddy backup subtree |
static Fqn |
BUDDY_BACKUP_SUBTREE_FQN
|
Constructor Summary | |
---|---|
BuddyManager(org.w3c.dom.Element element)
|
Method Summary | |
---|---|
protected BuddyLocator |
createBuddyLocator(java.lang.String className,
java.util.Properties props)
|
protected BuddyLocator |
createDefaultBuddyLocator(java.util.Properties props)
|
static Fqn |
getActualFqn(Fqn fqn)
|
Fqn |
getBackupFqn(Fqn originalFqn)
Assumes the backup Fqn if the current instance is the data owner |
static Fqn |
getBackupFqn(Fqn buddyGroupRoot,
Fqn origFqn)
|
static Fqn |
getBackupFqn(java.lang.Object buddyGroupName,
Fqn origFqn)
|
java.util.List |
getBuddyAddresses()
Returns a list of buddies for which this instance is Data Owner. |
int |
getBuddyCommunicationTimeout()
|
java.lang.String |
getBuddyPoolName()
|
static java.lang.String |
getGroupNameFromAddress(java.lang.Object address)
|
void |
handleAssignToBuddyGroup(BuddyGroup newGroup,
java.util.Map state)
Called by TreeCache._remoteAssignToBuddyGroup(BuddyGroup g) when a method call for this is received from a remote cache. |
void |
handlePoolNameBroadcast(org.jgroups.stack.IpAddress address,
java.lang.String poolName)
Called by TreeCache._remoteAnnounceBuddyPoolName(Address address, String buddyPoolName) when a view change occurs and caches need to inform the cluster of which buddy pool it is in. |
void |
handleRemoveFromBuddyGroup(java.lang.String groupName)
Called by TreeCache._remoteRemoveFromBuddyGroup(String groupName) when a method call for this is received from a remote cache. |
void |
init(TreeCache cache)
|
boolean |
isAutoDataGravitation()
|
static boolean |
isBackupFqn(Fqn name)
|
boolean |
isDataGravitationRemoveOnFind()
|
boolean |
isDataGravitationSearchBackupTrees()
|
boolean |
isEnabled()
|
JBCMethodCall |
transformFqns(JBCMethodCall call)
Introspects method call for Fqns and changes them such that they are under the current buddy group's backup subtree (e.g., /_buddy_backup_/my_host:7890/) rather than the root (/). |
JBCMethodCall |
transformFqns(JBCMethodCall call,
boolean transformForCurrentCall)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUDDY_BACKUP_SUBTREE
public static final Fqn BUDDY_BACKUP_SUBTREE_FQN
Constructor Detail |
---|
public BuddyManager(org.w3c.dom.Element element)
Method Detail |
---|
protected BuddyLocator createBuddyLocator(java.lang.String className, java.util.Properties props) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
protected BuddyLocator createDefaultBuddyLocator(java.util.Properties props)
public boolean isEnabled()
public java.lang.String getBuddyPoolName()
public static java.lang.String getGroupNameFromAddress(java.lang.Object address)
public void init(TreeCache cache) throws java.lang.Exception
java.lang.Exception
public boolean isAutoDataGravitation()
public boolean isDataGravitationRemoveOnFind()
public boolean isDataGravitationSearchBackupTrees()
public int getBuddyCommunicationTimeout()
public void handlePoolNameBroadcast(org.jgroups.stack.IpAddress address, java.lang.String poolName)
public void handleRemoveFromBuddyGroup(java.lang.String groupName)
public void handleAssignToBuddyGroup(BuddyGroup newGroup, java.util.Map state) throws java.lang.Exception
newGroup
- the buddy groupstate
- Mapnull
.
java.lang.Exception
public static Fqn getBackupFqn(java.lang.Object buddyGroupName, Fqn origFqn)
public static Fqn getBackupFqn(Fqn buddyGroupRoot, Fqn origFqn)
public static boolean isBackupFqn(Fqn name)
public java.util.List getBuddyAddresses()
public JBCMethodCall transformFqns(JBCMethodCall call)
public JBCMethodCall transformFqns(JBCMethodCall call, boolean transformForCurrentCall)
public Fqn getBackupFqn(Fqn originalFqn)
originalFqn
-
public static Fqn getActualFqn(Fqn fqn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |