public 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,
Object locker) |
| 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 |
getClusterType()
Cannot be stored
|
int |
getID() |
int |
getLastId() |
String |
getName() |
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) |
int |
size() |
Collection<V> |
values() |
ceilingEntry, ceilingKey, clone, comparator, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, headMap, headMap, higherEntry, higherKey, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, subMap, subMap, tailMap, tailMapequals, hashCode, toStringprotected ItemPath mItemPath
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)
setName in interface C2KLocalObjectpublic String getName()
getName in interface C2KLocalObjectpublic String getClusterType()
getClusterType in interface C2KLocalObjectpublic void clear()
clear in interface Map<String,V extends C2KLocalObject>clear in class TreeMap<String,V extends C2KLocalObject>Map.clear()public boolean containsKey(Object key)
containsKey in interface Map<String,V extends C2KLocalObject>containsKey in class TreeMap<String,V extends C2KLocalObject>Map.containsKey(Object)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>Map.get(Object)public boolean isEmpty()
isEmpty in interface Map<String,V extends C2KLocalObject>isEmpty in class AbstractMap<String,V extends C2KLocalObject>Map.isEmpty()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–2016 CRISTAL-iSE. All rights reserved.