public class HazelcastClusterManager extends Object implements ClusterManager
| Modifier and Type | Field and Description |
|---|---|
protected String |
clusterId |
CLUSTER_MANAGER_ID| Modifier and Type | Method and Description |
|---|---|
static HazelcastClusterManager |
create(org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository classLoaderRepository) |
static com.hazelcast.core.MembershipListener |
createConnectionListener(ClusterManager manager) |
static HazelcastClusterManager |
createManager(org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository classLoaderRepository) |
static HazelcastClusterLocker |
createPrimaryNodePollingThread(HazelcastClusterManager hazelcastManager,
CompositePrimaryClusterNodeNotifier clusterPrimaryNodeNotifier,
int heartbeatTimeoutSecs) |
void |
dispose() |
Properties |
getClusterConfigProperties() |
String |
getClusterId() |
String |
getClusterNodeId() |
static String |
getClusterPoolingLockId(String clusterId) |
ClusterStoreProfile |
getDefaultClusterStoreProfile() |
com.hazelcast.core.HazelcastInstance |
getHazelcastInstance() |
ClusterLocker |
getPrimaryNodePollingThread() |
InetSocketAddress |
getSocketAddress() |
ConcurrentMap<String,Object> |
getUserContext() |
void |
initialise() |
boolean |
isClientModeEnabled() |
static boolean |
isDuplicateHazelCastServerInstanceRequested() |
boolean |
isPrimaryPollingInstance() |
void |
onNotification() |
void |
registerObjectStore(HazelcastObjectStore store) |
void |
registerPrimaryNodeListener(PrimaryClusterNodeListener primaryClusterNodeListener) |
void |
setAsPollingNode(boolean isPoller)
Configures the polling status of the current cluster node.
|
void |
shutdown()
Terminates the cluster gracefully waiting for operations to be completed.
|
int |
size() |
void |
terminate()
Terminates the cluster ungracefully forcing immediate shutdown.
|
void |
unregisterObjectStore(HazelcastObjectStore store) |
void |
unregisterPrimaryNodeListener(PrimaryClusterNodeListener primaryClusterNodeListener) |
protected String clusterId
public Properties getClusterConfigProperties()
public void setAsPollingNode(boolean isPoller)
ClusterManagersetAsPollingNode in interface ClusterManagerisPoller - true if the node must poll, false otherwise.public ClusterLocker getPrimaryNodePollingThread()
getPrimaryNodePollingThread in interface ClusterManagerClusterLocker for the cluster node.public static com.hazelcast.core.MembershipListener createConnectionListener(ClusterManager manager)
public static HazelcastClusterManager createManager(org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository classLoaderRepository)
public static boolean isDuplicateHazelCastServerInstanceRequested()
public static HazelcastClusterManager create(org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository classLoaderRepository) throws org.mule.runtime.api.lifecycle.InitialisationException
org.mule.runtime.api.lifecycle.InitialisationExceptionpublic boolean isClientModeEnabled()
isClientModeEnabled in interface ClusterManagerpublic String getClusterId()
getClusterId in interface ClusterManagerpublic String getClusterNodeId()
getClusterNodeId in interface ClusterManagerpublic com.hazelcast.core.HazelcastInstance getHazelcastInstance()
public ConcurrentMap<String,Object> getUserContext()
public void registerObjectStore(HazelcastObjectStore store)
public void unregisterObjectStore(HazelcastObjectStore store)
public void initialise()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void dispose()
public boolean isPrimaryPollingInstance()
isPrimaryPollingInstance in interface ClusterManagerpublic void onNotification()
onNotification in interface PrimaryClusterNodeListenerpublic static HazelcastClusterLocker createPrimaryNodePollingThread(HazelcastClusterManager hazelcastManager, CompositePrimaryClusterNodeNotifier clusterPrimaryNodeNotifier, int heartbeatTimeoutSecs)
public void unregisterPrimaryNodeListener(PrimaryClusterNodeListener primaryClusterNodeListener)
public void registerPrimaryNodeListener(PrimaryClusterNodeListener primaryClusterNodeListener)
public ClusterStoreProfile getDefaultClusterStoreProfile()
public void terminate()
ClusterManagerterminate in interface ClusterManagerpublic void shutdown()
ClusterManagershutdown in interface ClusterManagerpublic int size()
size in interface ClusterManagerpublic InetSocketAddress getSocketAddress()
getSocketAddress in interface ClusterManagerCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.