public Fqn<String> getBuddyBackupSipSessionFqn(String dataOwner, String contextHostPath, String appSessionId, String sessionId) { String[] objs = new String[] { jBossCacheService.BUDDY_BACKUP, dataOwner, SIPSESSION, contextHostPath, sipApplicationNameHashed, appSessionId, sessionId }; return Fqn.fromList(Arrays.asList(objs), true); }
public static Fqn<String> getAttributeFqn(String contextHostPath, String sipApplicationSessionKey) { String[] objs = new String[] { SESSION, contextHostPath, sipApplicationSessionKey, ATTRIBUTE }; return Fqn.fromList(Arrays.asList(objs), true); }
public Fqn<String> getBuddyBackupSipApplicationSessionFqn(String dataOwner, String contextHostPath, String sessionId) { String[] objs = new String[] { jBossCacheService.BUDDY_BACKUP, dataOwner, SIPSESSION, contextHostPath, sipApplicationNameHashed, sessionId }; return Fqn.fromList(Arrays.asList(objs), true); }
public Fqn<String> getSipSessionFqn(String contextHostPath, String appSessionId, String sessionId) { // /SIPSESSION/contextHostPath/sipApplicationName/id/sessionId String[] objs = new String[] { SIPSESSION, contextHostPath, sipApplicationNameHashed, appSessionId, sessionId }; return Fqn.fromList(Arrays.asList(objs), true); }
public static Fqn<String> getAttributeFqn(String contextHostPath, String sipApplicationSessionKey, String sipSessionKey) { String[] objs = new String[] { SESSION, contextHostPath, sipApplicationSessionKey, sipSessionKey, ATTRIBUTE }; return Fqn.fromList(Arrays.asList(objs), true); }
protected Fqn<String> getSipappFqn() { // /SIPSESSION/sipAppPath_hostName String[] objs = new String[] { SIPSESSION, jBossCacheService.combinedPath_ }; return Fqn.fromList(Arrays.asList(objs), true); }
public Fqn<String> getSipApplicationSessionFqn(String contextHostPath, String sessionId) { // /SIPSESSION/contextHostPath/sipApplicationName/id String[] objs = new String[] { SIPSESSION, contextHostPath, sipApplicationNameHashed, sessionId }; return Fqn.fromList(Arrays.asList(objs), true); }
public static Fqn<String> getFieldFqn(String contextHostPath, String sipApplicationSessionKey, String attributeKey) { List<String> list = new ArrayList<String>(5); list.add(DistributedCacheConvergedSipManagerDelegate.SIPSESSION); list.add(contextHostPath); list.add(sipApplicationSessionKey); list.add(ATTRIBUTE); // Guard against string with delimiter. breakKeys(attributeKey, list); return Fqn.fromList(list, true); }
public static Fqn<String> getFieldFqn(String contextHostPath, String sipApplicationSessionKey, String sipSessionKey, String attributeKey) { List<String> list = new ArrayList<String>(5); list.add(DistributedCacheConvergedSipManagerDelegate.SIPSESSION); list.add(contextHostPath); list.add(sipApplicationSessionKey); list.add(sipSessionKey); list.add(ATTRIBUTE); // Guard against string with delimiter. breakKeys(attributeKey, list); return Fqn.fromList(list, true); }
protected Fqn unmarshallFqn(ObjectInputStream in, UnmarshalledReferences refMap) throws Exception { boolean isRoot = in.readBoolean(); Fqn fqn; if (!isRoot) { int numElements = in.readShort(); List<Object> elements = new ArrayList<Object>(numElements); for (int i = 0; i < numElements; i++) { elements.add(unmarshallObject(in, refMap)); } fqn = Fqn.fromList(elements, true); } else { fqn = Fqn.ROOT; } return fqn; }
/** * Utility method that retrieves a buddy backup Fqn given the actual Fqn of some data and the buddy group name. * * @param buddyGroupName the buddy group name * @param origFqn the original Fqn * @return a backup Fqn */ public Fqn getBackupFqn(String buddyGroupName, Fqn origFqn) { if (isBackupFqn(origFqn)) throw new CacheException("Cannot make a backup Fqn from a backup Fqn! Attempting to create a backup of " + origFqn); List<Object> elements = new ArrayList<Object>(origFqn.size() + 2); elements.add(BuddyManager.BUDDY_BACKUP_SUBTREE); elements.add(buddyGroupName); elements.addAll(origFqn.peekElements()); return Fqn.fromList(elements, true); }
/** * 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 * * @param buddyGroupRoot the subtree under which data for a particular buddy is backed up * @param origFqn the original Fqn * @return a backup Fqn */ public Fqn getBackupFqn(Fqn buddyGroupRoot, Fqn origFqn) { if (isBackupFqn(origFqn)) throw new CacheException("Cannot make a backup Fqn from a backup Fqn! Attempting to create a backup of " + origFqn); List<Object> elements = new ArrayList<Object>(origFqn.size() + 2); elements.add(BuddyManager.BUDDY_BACKUP_SUBTREE); elements.add(buddyGroupRoot.get(1)); elements.addAll(origFqn.peekElements()); return Fqn.fromList(elements, true); }