public class AnalyticsClusterManagerImpl extends Object implements AnalyticsClusterManager, com.hazelcast.core.MembershipListener
AnalyticsClusterManager implementation.| Modifier and Type | Class and Description |
|---|---|
static class |
AnalyticsClusterManagerImpl.LeaderUpdateNotification
This class represents the cluster message that notifies the cluster of a new leader
|
| Constructor and Description |
|---|
AnalyticsClusterManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
execute(String groupId,
Callable<T> callable)
Executes the given
Callable in all the nodes in the group, including the current one. |
Serializable |
getProperty(String groupId,
String name)
Retrieves a property local to a given group.
|
boolean |
isClusteringEnabled()
Checks if the server is in clustered mode.
|
void |
joinGroup(String groupId,
GroupEventListener groupEventListener)
Joins a given group.
|
void |
memberAdded(com.hazelcast.core.MembershipEvent event) |
void |
memberAttributeChanged(com.hazelcast.core.MemberAttributeEvent event) |
void |
memberRemoved(com.hazelcast.core.MembershipEvent event) |
void |
setProperty(String groupId,
String name,
Serializable value)
Sets a property local to the given group.
|
public void joinGroup(String groupId, GroupEventListener groupEventListener) throws AnalyticsClusterException
AnalyticsClusterManagerjoinGroup in interface AnalyticsClusterManagergroupId - The group id of the groupgroupEventListener - The listener class to listen for group eventsAnalyticsClusterExceptionpublic <T> List<T> execute(String groupId, Callable<T> callable) throws AnalyticsClusterException
AnalyticsClusterManagerCallable in all the nodes in the group, including the current one.
This method executes even if clustering is not enabled, where then it will simply execute it
in the current node and return a single response.execute in interface AnalyticsClusterManagergroupId - The group id of the groupcallable - The implementation to be executedAnalyticsClusterExceptionpublic void setProperty(String groupId, String name, Serializable value)
AnalyticsClusterManagersetProperty in interface AnalyticsClusterManagergroupId - The group id of the groupname - The name of the propertyvalue - The property valuepublic Serializable getProperty(String groupId, String name)
AnalyticsClusterManagergetProperty in interface AnalyticsClusterManagergroupId - The group id of the groupname - THe name of the propertypublic boolean isClusteringEnabled()
AnalyticsClusterManagerisClusteringEnabled in interface AnalyticsClusterManagerpublic void memberAdded(com.hazelcast.core.MembershipEvent event)
memberAdded in interface com.hazelcast.core.MembershipListenerpublic void memberAttributeChanged(com.hazelcast.core.MemberAttributeEvent event)
memberAttributeChanged in interface com.hazelcast.core.MembershipListenerpublic void memberRemoved(com.hazelcast.core.MembershipEvent event)
memberRemoved in interface com.hazelcast.core.MembershipListenerCopyright © 2015 WSO2. All rights reserved.