V - the C2KLocalObject stored by this Mappublic class RemoteMap<V extends C2KLocalObject> extends TreeMap<String,V> implements C2KLocalObject
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RemoteMap(ItemPath itemPath,
String path,
TransactionKey transactionKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value)
This must retrieve all the values until a match is made.
|
void |
deactivate() |
void |
finalize() |
V |
get(Object objKey) |
String |
getClusterPath()
Each C2KLocalObject is stored with a path identifier starting with the ClusterType:
Properties: /Property/Name
Workflow: /LifeCycle/workflow
Collections: /Collection/Name/Version (default Name='last')
Outcomes: /Outcome/SchemaName/SchemaVersion/EventID
Viewpoints: /ViewPoint/SchemaName/Name (default Name='last')
Events: /AuditTrail/EventID
Jobs: /Job/JobID
|
ClusterType |
getClusterType()
Returns null so it cannot be stored
|
int |
getID() |
int |
getLastId() |
String |
getName()
Gets the name of the C2KLocalObject
|
boolean |
isEmpty() |
Set<String> |
keySet() |
protected void |
loadKeys() |
V |
put(String key,
V value)
Inserts the given object into the storage
the key is ignored - it can be fetched from the value.
|
protected V |
putLocal(String key,
V value) |
V |
remove(Object key) |
protected V |
removeLocal(Object key) |
void |
setID(int id) |
void |
setName(String name)
Sets the name of the C2KLocalObject
|
int |
size() |
Collection<V> |
values() |
ceilingEntry, ceilingKey, clone, comparator, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, headMap, headMap, higherEntry, higherKey, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, replace, replace, replaceAll, subMap, subMap, tailMap, tailMapequals, hashCode, toStringenforceValidNamecompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, removeprotected ItemPath mItemPath
public RemoteMap(ItemPath itemPath, String path, TransactionKey transactionKey)
public void activate()
public void deactivate()
protected void loadKeys()
public int getLastId()
public void setID(int id)
public int getID()
public void setName(String name)
C2KLocalObjectsetName in interface C2KLocalObjectname - Name of the C2KLocalObjectpublic String getName()
C2KLocalObjectgetName in interface C2KLocalObjectpublic ClusterType getClusterType()
getClusterType in interface C2KLocalObjectpublic String getClusterPath()
C2KLocalObjectgetClusterPath in interface C2KLocalObjectpublic void clear()
clear in interface Map<String,V extends C2KLocalObject>clear in class TreeMap<String,V extends C2KLocalObject>public boolean containsKey(Object key)
containsKey in interface Map<String,V extends C2KLocalObject>containsKey in class TreeMap<String,V extends C2KLocalObject>public boolean containsValue(Object value)
containsValue in interface Map<String,V extends C2KLocalObject>containsValue in class TreeMap<String,V extends C2KLocalObject>Map.containsValue(Object)public V get(Object objKey)
get in interface Map<String,V extends C2KLocalObject>get in class TreeMap<String,V extends C2KLocalObject>public boolean isEmpty()
isEmpty in interface Map<String,V extends C2KLocalObject>isEmpty in class AbstractMap<String,V extends C2KLocalObject>public Set<String> keySet()
keySet in interface Map<String,V extends C2KLocalObject>keySet in interface SortedMap<String,V extends C2KLocalObject>keySet in class TreeMap<String,V extends C2KLocalObject>Map.keySet()public V put(String key, V value)
put in interface Map<String,V extends C2KLocalObject>put in class TreeMap<String,V extends C2KLocalObject>Map.put(Object, Object)public V remove(Object key)
remove in interface Map<String,V extends C2KLocalObject>remove in class TreeMap<String,V extends C2KLocalObject>Map.remove(Object)public int size()
size in interface Map<String,V extends C2KLocalObject>size in class TreeMap<String,V extends C2KLocalObject>Map.size()public Collection<V> values()
values in interface Map<String,V extends C2KLocalObject>values in interface SortedMap<String,V extends C2KLocalObject>values in class TreeMap<String,V extends C2KLocalObject>Map.values()Copyright © 1997–2022 CRISTAL-iSE. All rights reserved.