public NodeData(String fqn, Map<K, V> attrs, boolean mapSafe) { this(Fqn.fromString(fqn), attrs, mapSafe); }
public void move(String nodeToMove, String newParent) throws NodeNotExistsException { move(Fqn.fromString(nodeToMove), Fqn.fromString(newParent)); }
@Override public void setDefaultRegion(String defaultRegion) { super.setDefaultRegion(defaultRegion); this.defaultFqn = Fqn.fromString(defaultRegion); }
public NodeEntry(String fqn) { this(); setFqn(Fqn.fromString(fqn)); }
public static Fqn<String> getTypeFirstRegionFqn(String regionName, String regionPrefix, String regionType) { Fqn<String> base = Fqn.fromString(regionType); Fqn<String> added = Fqn.fromString(escapeRegionName(regionName, regionPrefix)); return new Fqn<String>(base, added); }
@SuppressWarnings("unchecked") public Set<String> getChildrenNames(String fqn) { return (Set) getChildrenNames(Fqn.fromString(fqn)); }
public static Fqn<String> getTypeFirstRegionFqn(String regionName, String regionPrefix, String regionType) { Fqn<String> base = Fqn.fromString(regionType); Fqn<String> added = Fqn.fromString(escapeRegionName(regionName, regionPrefix)); return new Fqn<String>(base, added); }
public NodeEntry getNodeEntry(String fqn) { return this.getNodeEntry(Fqn.fromString(fqn)); }
public V get(String fqn, K key) { return get(Fqn.fromString(fqn), key); }
public NodeSPI<K, V> getNode(String fqn) { return getNode(Fqn.fromString(fqn)); }
public Set<K> getKeys(String fqn) { return getKeys(Fqn.fromString(fqn)); }
public NodeEntry getNodeEntry(String fqn) { return this.getNodeEntry(Fqn.fromString(fqn)); }
public void removeSipApplicationSessionAttributeLocal( String sipApplicationSessionKey, String key) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); if (log_.isTraceEnabled()) { log_.trace("Remove attribute from distributed store. Fqn: " + Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY) + " key: " + key); } cacheWrapper_.removeLocal(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key); }
public void putSipApplicationSessionAttribute(String sipApplicationSessionKey, Map<String, Object> map) { // Duplicate the map with marshalled values Map<Object, Object> marshalled = new HashMap<Object, Object>(map.size()); for (Map.Entry<String, Object> entry : map.entrySet()) { marshalled .put(entry.getKey(), getMarshalledValue(entry.getValue())); } Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), marshalled); }
public void putSipSessionAttribute(String sipApplicationSessionKey, String sipSessionKey, Map<String, Object> map) { // Duplicate the map with marshalled values Map<Object, Object> marshalled = new HashMap<Object, Object>(map.size()); for (Map.Entry<String, Object> entry : map.entrySet()) { marshalled .put(entry.getKey(), getMarshalledValue(entry.getValue())); } Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), marshalled); }
public Object removeSipApplicationSessionAttribute( String sipApplicationSessionKey, String key) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); if (log_.isTraceEnabled()) { log_.trace("Remove attribute from distributed store. Fqn: " + Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY) + " key: " + key); } return getUnMarshalledValue(cacheWrapper_.remove(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
@Override public List<V> getAll() { Node<String, Object> cache = getCache().getNode(Fqn.fromString(_cacheName)); ArrayList<V> list = new ArrayList<>(); if (cache != null) { populateValues(cache, list); } return list; }
public Object getSipSessionAttribute( String sipApplicationSessionKey, String sipSessionKey, String key) { Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); return getUnMarshalledValue(cacheWrapper_.get(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
public Object getSipApplicationSessionAttribute( String sipApplicationSessionKey, String key) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); return getUnMarshalledValue(cacheWrapper_.get(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
public void putSipApplicationSessionAttribute(String sipApplicationSessionKey, String key, Object value) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key, getMarshalledValue(value)); }