Class OHazelcastDistributedMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<String,Object>
com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedMap
- All Implemented Interfaces:
com.hazelcast.map.listener.EntryAddedListener<String,,Object> com.hazelcast.map.listener.EntryRemovedListener<String,,Object> com.hazelcast.map.listener.EntryUpdatedListener<String,,Object> com.hazelcast.map.listener.MapClearedListener,com.hazelcast.map.listener.MapListener,Serializable,ConcurrentMap<String,,Object> EventListener,Map<String,Object>
public class OHazelcastDistributedMap
extends ConcurrentHashMap<String,Object>
implements com.hazelcast.map.listener.EntryAddedListener<String,Object>, com.hazelcast.map.listener.EntryRemovedListener<String,Object>, com.hazelcast.map.listener.MapClearedListener, com.hazelcast.map.listener.EntryUpdatedListener<String,Object>
Optimized concurrent hash map implementation on top of Hazelcast distributed map.
- Author:
- Luca Garulli (l.garulli--at--orientdb.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsKey(Object key) voiddestroy()voidentryAdded(com.hazelcast.core.EntryEvent<String, Object> event) voidentryRemoved(com.hazelcast.core.EntryEvent<String, Object> event) entrySet()voidentryUpdated(com.hazelcast.core.EntryEvent<String, Object> event) booleanexistsDatabaseConfiguration(String databaseName) booleanexistsNode(String nodeUuid) getCachedDatabaseStatus(String node, String databaseName) getDatabaseConfiguration(String databaseName) getDatabaseStatus(String node, String databaseName) static StringgetLocalCachedNodeConfig(String nodeUuid) getNodeConfig(String nodeUuid) getNodes()getNodeUuidByName(String name) static booleanstatic booleanisDatabaseStatus(String key) static booleanisNodeConfigKey(String key) static booleanisRegisteredNodes(String key) voidmapCleared(com.hazelcast.core.MapEvent event) putIfAbsent(String key, Object value) putInLocalCache(String key, Object value) voidputNodeConfig(String nodeUuid, ONodeConfig cfg) voidputRegisteredNodes(ORegisteredNodes registeredNodes) booleanvoidremoveDatabaseConfiguration(String databaseName) voidremoveDatabaseStatus(String node, String databaseName) voidremoveNode(String nodeUuid) voidsetDatabaseConfiguration(String databaseName, ODocument document) voidsetDatabaseStatus(String node, String databaseName, ODistributedServerManager.DB_STATUS status) Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsValue, elements, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putAll, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesMethods inherited from class java.util.AbstractMap
clone
-
Field Details
-
ORIENTDB_MAP
- See Also:
-
-
Constructor Details
-
OHazelcastDistributedMap
public OHazelcastDistributedMap(com.hazelcast.core.HazelcastInstance hz)
-
-
Method Details
-
getHazelcastMap
-
get
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object> - Overrides:
containsKeyin classConcurrentHashMap<String,Object>
-
entrySet
-
localEntrySet
-
getLocalCachedValue
-
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<String,Object> - Specified by:
putIfAbsentin interfaceMap<String,Object> - Overrides:
putIfAbsentin classConcurrentHashMap<String,Object>
-
putInLocalCache
-
remove
-
remove
-
entryAdded
-
entryUpdated
-
entryRemoved
-
mapCleared
public void mapCleared(com.hazelcast.core.MapEvent event) - Specified by:
mapClearedin interfacecom.hazelcast.map.listener.MapClearedListener
-
destroy
public void destroy() -
clearLocalCache
public void clearLocalCache() -
existsNode
-
getNodeConfig
-
removeNode
-
getLocalCachedNodeConfig
-
getNodes
-
putNodeConfig
-
getNodeUuidByName
-
isNodeConfigKey
-
getRegisteredNodes
-
putRegisteredNodes
-
isRegisteredNodes
-
existsDatabaseConfiguration
-
setDatabaseConfiguration
-
getDatabaseConfiguration
-
getDatabases
-
removeDatabaseConfiguration
-
isDatabaseConfiguration
-
setDatabaseStatus
public void setDatabaseStatus(String node, String databaseName, ODistributedServerManager.DB_STATUS status) -
removeDatabaseStatus
-
getDatabaseStatus
-
getCachedDatabaseStatus
public ODistributedServerManager.DB_STATUS getCachedDatabaseStatus(String node, String databaseName) -
isDatabaseStatus
-
getDatabaseStatusKeyValues
-