Package org.kie.api.cluster
Interface ClusterAwareService
- All Superinterfaces:
Comparable<KieService>,KieService
Interface that allows to rise some awareness about the cluster environment
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClusterListener(ClusterListener listener) Add cluster listener for join and left members<T> voidGet all active members of the cluster<T> List<T><T> List<T>getDataFromPartition(String key, String partition) booleanComputes whether the jbpm engine instance is the coordinator therefore the one to provide singleton cluster active features.<T> voidremoveData(String key, String partition, T value) Methods inherited from interface org.kie.api.internal.utils.KieService
compareTo, servicePriority
-
Field Details
-
CLUSTER_NODES_KEY
- See Also:
-
CLUSTER_JOBS_KEY
- See Also:
-
-
Method Details
-
getThisNode
ClusterNode getThisNode() -
isCoordinator
boolean isCoordinator()Computes whether the jbpm engine instance is the coordinator therefore the one to provide singleton cluster active features.- Returns:
- whether this instance of jbpm engine is the one coordinating or not.
-
getActiveClusterNodes
Collection<ClusterNode> getActiveClusterNodes()Get all active members of the cluster -
removeData
-
addData
-
getData
-
getDataFromPartition
-
addClusterListener
Add cluster listener for join and left members- Parameters:
listener-
-