|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.buddyreplication.BuddyFqnTransformer
public class BuddyFqnTransformer
Knows how to transform between fqn and buddy-formated fqns.
| Field Summary | |
|---|---|
static String |
BUDDY_BACKUP_SUBTREE
|
static Fqn<String> |
BUDDY_BACKUP_SUBTREE_FQN
|
| Constructor Summary | |
|---|---|
BuddyFqnTransformer()
|
|
| Method Summary | |
|---|---|
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<String> |
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<String> |
getDeadBackupRoot(org.jgroups.Address dataOwner)
Returns the backup root of a dead data owner |
String |
getGroupNameFromAddress(org.jgroups.Address address)
|
boolean |
isBackupFqn(Fqn name)
|
boolean |
isDeadBackupFqn(Fqn name)
Tests whether a given Fqn belongs to a dead backup region. |
boolean |
isDeadBackupRoot(Fqn f)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BUDDY_BACKUP_SUBTREE
public static final Fqn<String> BUDDY_BACKUP_SUBTREE_FQN
| Constructor Detail |
|---|
public BuddyFqnTransformer()
| Method Detail |
|---|
public Fqn getBackupFqn(org.jgroups.Address dataOwnerAddress,
Fqn origFqn)
dataOwnerAddress - the JGroups Address of the data ownerorigFqn - the original Fqn
public Fqn getBackupFqn(String buddyGroupName,
Fqn origFqn)
buddyGroupName - the buddy group nameorigFqn - the original Fqn
public Fqn getBackupFqn(Fqn buddyGroupRoot,
Fqn origFqn)
buddyGroupRoot - the subtree under which data for a particular buddy is backed uporigFqn - the original Fqn
public boolean isBackupFqn(Fqn name)
public Fqn getActualFqn(Fqn fqn)
public boolean isDeadBackupFqn(Fqn name)
name - fqn to test
public Fqn<String> getBackupRoot(org.jgroups.Address dataOwner)
dataOwner - owner of a data set
public Fqn<String> getDeadBackupRoot(org.jgroups.Address dataOwner)
dataOwner - owner of data
public boolean isDeadBackupRoot(Fqn f)
public String getGroupNameFromAddress(org.jgroups.Address address)
public Fqn getBackupRootFromFqn(Fqn fqn)
fqn - fqn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||