public interface AnalyticsClusterManager
| 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 |
setProperty(String groupId,
String name,
Serializable value)
Sets a property local to the given group.
|
void joinGroup(String groupId, GroupEventListener groupEventListener) throws AnalyticsClusterException
groupId - The group id of the groupgroupEventListener - The listener class to listen for group eventsAnalyticsClusterException<T> List<T> execute(String groupId, Callable<T> callable) throws AnalyticsClusterException
Callable 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.groupId - The group id of the groupcallable - The implementation to be executedAnalyticsClusterExceptionvoid setProperty(String groupId, String name, Serializable value)
groupId - The group id of the groupname - The name of the propertyvalue - The property valueSerializable getProperty(String groupId, String name)
groupId - The group id of the groupname - THe name of the propertyboolean isClusteringEnabled()
Copyright © 2015 WSO2. All rights reserved.