Package org.kie.api.cluster
Interface ClusterAwareService
- 
- All Superinterfaces:
- Comparable<KieService>,- KieService
 
 public interface ClusterAwareService extends KieService Interface that allows to rise some awareness about the cluster environment
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCLUSTER_JOBS_KEYstatic StringCLUSTER_NODES_KEY
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddClusterListener(ClusterListener listener)Add cluster listener for join and left members<T> voidaddData(String key, String partition, T value)Collection<ClusterNode>getActiveClusterNodes()Get all active members of the cluster<T> List<T>getData(String key)<T> List<T>getDataFromPartition(String key, String partition)ClusterNodegetThisNode()booleanisCoordinator()Computes 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.KieServicecompareTo, servicePriority
 
- 
 
- 
- 
- 
Field Detail- 
CLUSTER_NODES_KEYstatic final String CLUSTER_NODES_KEY - See Also:
- Constant Field Values
 
 - 
CLUSTER_JOBS_KEYstatic final String CLUSTER_JOBS_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getThisNodeClusterNode getThisNode() 
 - 
isCoordinatorboolean 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.
 
 - 
getActiveClusterNodesCollection<ClusterNode> getActiveClusterNodes() Get all active members of the cluster
 - 
addClusterListenervoid addClusterListener(ClusterListener listener) Add cluster listener for join and left members- Parameters:
- listener-
 
 
- 
 
-