Class OHazelcastClusterMetadataManager
java.lang.Object
com.orientechnologies.orient.server.hazelcast.OHazelcastClusterMetadataManager
- All Implemented Interfaces:
com.hazelcast.core.EntryListener<String,,Object> com.hazelcast.core.LifecycleListener,com.hazelcast.core.MembershipListener,com.hazelcast.map.listener.EntryAddedListener<String,,Object> com.hazelcast.map.listener.EntryEvictedListener<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.MapEvictedListener,com.hazelcast.map.listener.MapListener,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConcurrentMap<ONodeId, com.hazelcast.core.Member> protected ConcurrentMap<String, ONodeId> protected ConcurrentMap<ONodeId, String> static final Stringprotected OHazelcastDistributedMapprotected com.hazelcast.config.Configprotected Stringprotected com.hazelcast.core.HazelcastInstanceprotected Stringprotected Stringprotected OCancellableTimer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigHazelcastPlugin(OServer server, OServerParameterConfiguration[] params, String nodeName) protected com.hazelcast.core.HazelcastInstancevoidentryAdded(com.hazelcast.core.EntryEvent<String, Object> iEvent) voidentryEvicted(com.hazelcast.core.EntryEvent<String, Object> iEvent) voidentryRemoved(com.hazelcast.core.EntryEvent<String, Object> iEvent) voidentryUpdated(com.hazelcast.core.EntryEvent<String, Object> iEvent) com.hazelcast.config.Configcom.hazelcast.core.HazelcastInstancegetNodeConfigurationByUuid(String iNodeId, boolean useCache) getNodeId(com.hazelcast.core.Member iMember, boolean useCache) voidvoidmapCleared(com.hazelcast.core.MapEvent event) voidmapEvicted(com.hazelcast.core.MapEvent iEvent) voidmemberAdded(com.hazelcast.core.MembershipEvent iEvent) voidmemberAttributeChanged(com.hazelcast.core.MemberAttributeEvent memberAttributeEvent) voidmemberRemoved(com.hazelcast.core.MembershipEvent iEvent) Removes the node map entry.voidprotected voidprotected voidregisterNode(com.hazelcast.core.Member member, ONodeConfig cfg) voidvoidstateChanged(com.hazelcast.core.LifecycleEvent event)
-
Field Details
-
CONFIG_NODE_PREFIX
- See Also:
-
hazelcastConfigFile
-
hazelcastConfig
protected com.hazelcast.config.Config hazelcastConfig -
membershipListenerRegistration
-
membershipListenerMapRegistration
-
hazelcastInstance
protected volatile com.hazelcast.core.HazelcastInstance hazelcastInstance -
configurationMap
-
activeNodes
-
activeNodesNamesByUuid
-
activeNodesUuidByName
-
publishLocalNodeConfigurationTask
-
-
Constructor Details
-
OHazelcastClusterMetadataManager
-
-
Method Details
-
configHazelcastPlugin
public void configHazelcastPlugin(OServer server, OServerParameterConfiguration[] params, String nodeName) throws FileNotFoundException - Throws:
FileNotFoundException
-
getHazelcastConfig
public com.hazelcast.config.Config getHazelcastConfig() -
startupHazelcastPlugin
- Throws:
IOExceptionInterruptedException
-
publishLocalNodeConfiguration
protected void publishLocalNodeConfiguration() -
prepareHazelcastPluginShutdown
public void prepareHazelcastPluginShutdown() -
hazelcastPluginShutdown
public void hazelcastPluginShutdown() -
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance() -
configureHazelcast
- Throws:
FileNotFoundException
-
memberAttributeChanged
public void memberAttributeChanged(com.hazelcast.core.MemberAttributeEvent memberAttributeEvent) - Specified by:
memberAttributeChangedin interfacecom.hazelcast.core.MembershipListener
-
entryAdded
-
entryUpdated
-
entryRemoved
-
entryEvicted
-
mapEvicted
public void mapEvicted(com.hazelcast.core.MapEvent iEvent) - Specified by:
mapEvictedin interfacecom.hazelcast.map.listener.MapEvictedListener
-
mapCleared
public void mapCleared(com.hazelcast.core.MapEvent event) - Specified by:
mapClearedin interfacecom.hazelcast.map.listener.MapClearedListener
-
memberRemoved
public void memberRemoved(com.hazelcast.core.MembershipEvent iEvent) Removes the node map entry.- Specified by:
memberRemovedin interfacecom.hazelcast.core.MembershipListener
-
memberAdded
public void memberAdded(com.hazelcast.core.MembershipEvent iEvent) - Specified by:
memberAddedin interfacecom.hazelcast.core.MembershipListener
-
stateChanged
public void stateChanged(com.hazelcast.core.LifecycleEvent event) - Specified by:
stateChangedin interfacecom.hazelcast.core.LifecycleListener
-
getNodeConfigurationByUuid
-
registerNode
-
getNodeId
-