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 inherited from interface org.kie.api.internal.utils.KieService
UNDEFINED
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClusterListener
(ClusterListener listener) Add cluster listener for join and left members<T> void
Get all active members of the cluster<T> List<T>
<T> List<T>
getDataFromPartition
(String key, String partition) boolean
Computes whether the jbpm engine instance is the coordinator therefore the one to provide singleton cluster active features.<T> void
removeData
(String key, String partition, T value) Methods inherited from interface org.kie.api.internal.utils.KieService
compareTo, servicePriority, serviceTag
-
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
-
-