Class InfinispanClusterAwareService

  • All Implemented Interfaces:
    org.kie.api.cluster.ClusterAwareService, org.kie.api.internal.utils.KieService, org.kie.api.Service

    public class InfinispanClusterAwareService
    extends Object
    implements org.kie.api.cluster.ClusterAwareService
    • Constructor Detail

      • InfinispanClusterAwareService

        public InfinispanClusterAwareService​(String kieServerId,
                                             String kieServerLocation)
      • InfinispanClusterAwareService

        public InfinispanClusterAwareService()
    • Method Detail

      • getThisNode

        public org.kie.api.cluster.ClusterNode getThisNode()
        Specified by:
        getThisNode in interface org.kie.api.cluster.ClusterAwareService
      • init

        public void init​(org.infinispan.manager.EmbeddedCacheManager cacheManager)
      • nodeJoined

        public void nodeJoined​(org.infinispan.notifications.cachelistener.event.CacheEntryCreatedEvent<org.infinispan.remoting.transport.Address,​org.kie.api.cluster.ClusterNode> event)
      • nodeLeft

        public void nodeLeft​(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<org.infinispan.remoting.transport.Address,​org.kie.api.cluster.ClusterNode> event)
      • viewChanged

        public void viewChanged​(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent event)
      • isCoordinator

        public boolean isCoordinator()
        Specified by:
        isCoordinator in interface org.kie.api.cluster.ClusterAwareService
      • getActiveClusterNodes

        public Collection<org.kie.api.cluster.ClusterNode> getActiveClusterNodes()
        Specified by:
        getActiveClusterNodes in interface org.kie.api.cluster.ClusterAwareService
      • removeData

        public <T> void removeData​(String key,
                                   String partition,
                                   T value)
        Specified by:
        removeData in interface org.kie.api.cluster.ClusterAwareService
      • addData

        public <T> void addData​(String key,
                                String partition,
                                T value)
        Specified by:
        addData in interface org.kie.api.cluster.ClusterAwareService
      • getData

        public <T> List<T> getData​(String key)
        Specified by:
        getData in interface org.kie.api.cluster.ClusterAwareService
      • getDataFromPartition

        public <T> List<T> getDataFromPartition​(String key,
                                                String partition)
        Specified by:
        getDataFromPartition in interface org.kie.api.cluster.ClusterAwareService
      • addClusterListener

        public void addClusterListener​(org.kie.api.cluster.ClusterListener listener)
        Specified by:
        addClusterListener in interface org.kie.api.cluster.ClusterAwareService