public class BuddyFqnTransformer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BUDDY_BACKUP_SUBTREE |
static Fqn |
BUDDY_BACKUP_SUBTREE_FQN |
| Constructor and Description |
|---|
BuddyFqnTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Fqn |
getActualFqn(Fqn fqn) |
Fqn |
getBackupFqn(org.jgroups.Address dataOwnerAddress,
Fqn origFqn)
Utility method that retrieves a buddy backup Fqn given the actual Fqn of some data and the data owner's Address.
|
Fqn |
getBackupFqn(Fqn buddyGroupRoot,
Fqn origFqn)
Utility method that retrieves a buddy backup Fqn given the actual Fqn of some data and the backup subtree for the
buddy group in question
|
Fqn |
getBackupFqn(String buddyGroupName,
Fqn origFqn)
Utility method that retrieves a buddy backup Fqn given the actual Fqn of some data and the buddy group name.
|
Fqn |
getBackupRoot(org.jgroups.Address dataOwner) |
Fqn |
getBackupRootFromFqn(Fqn fqn)
Returns the buddy backp root portion of a given Fqn, provided it is a backup Fqn.
|
Fqn |
getDeadBackupRoot(org.jgroups.Address dataOwner)
Returns the backup root of a dead data owner
|
Set<?> |
getDeadBackupRootChildren(Set<?> children)
Takes a set of names that represent the children of a
dead backup root and ensure they are
all of the expected type, tranforming any that are not. |
String |
getGroupNameFromAddress(org.jgroups.Address address) |
static boolean |
isBackupFqn(Fqn name) |
boolean |
isDeadBackupFqn(Fqn name)
Tests whether a given Fqn belongs to a dead backup region.
|
boolean |
isDeadBackupRoot(Fqn f) |
public static final String BUDDY_BACKUP_SUBTREE
public static final Fqn BUDDY_BACKUP_SUBTREE_FQN
public Fqn getBackupFqn(org.jgroups.Address dataOwnerAddress, Fqn origFqn)
dataOwnerAddress - the JGroups Address of the data ownerorigFqn - the original Fqnpublic Fqn getBackupFqn(String buddyGroupName, Fqn origFqn)
buddyGroupName - the buddy group nameorigFqn - the original Fqnpublic Fqn getBackupFqn(Fqn buddyGroupRoot, Fqn origFqn)
buddyGroupRoot - the subtree under which data for a particular buddy is backed uporigFqn - the original Fqnpublic static boolean isBackupFqn(Fqn name)
public boolean isDeadBackupFqn(Fqn name)
name - fqn to testpublic Fqn getBackupRoot(org.jgroups.Address dataOwner)
dataOwner - owner of a data setpublic Fqn getDeadBackupRoot(org.jgroups.Address dataOwner)
dataOwner - owner of datapublic boolean isDeadBackupRoot(Fqn f)
public String getGroupNameFromAddress(org.jgroups.Address address)
public Fqn getBackupRootFromFqn(Fqn fqn)
fqn - fqnpublic Set<?> getDeadBackupRootChildren(Set<?> children)
dead backup root and ensure they are
all of the expected type, tranforming any that are not. See JBCACHE-1580.children - names that represent the children of a dead backup root nodenames whose members are all of the
expected type.Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.