Class MockClusterService

  • All Implemented Interfaces:
    ClusterService, java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class MockClusterService
    extends AbstractService
    implements ClusterService
    See Also:
    Serialized Form
    • Constructor Detail

      • MockClusterService

        public MockClusterService()
    • Method Detail

      • getClusterId

        public int getClusterId()
        Description copied from interface: ClusterService
        The current cluster id which is unique for each java process in the cluster island.
        Specified by:
        getClusterId in interface ClusterService
        Returns:
        the cluster id
      • setClusterId

        public void setClusterId​(int clusterId)
      • getClusterIslandId

        public long getClusterIslandId()
        Description copied from interface: ClusterService
        An unique string identifying the complete cluster. This is identical on all cluster nodes that are connected to the same database and is different if two nodes are connected to different databases. All cluster nodes in one island are receiving multicast invalidation packages
        Specified by:
        getClusterIslandId in interface ClusterService
        Returns:
        the cluster island id
      • setClusterIslandId

        public void setClusterIslandId​(long clusterIslandId)
      • isClusteringEnabled

        public boolean isClusteringEnabled()
        Description copied from interface: ClusterService
        'true' ONLY IF the correspondig property is set to 'true' AND the installed licence file supports this feature, too
        Specified by:
        isClusteringEnabled in interface ClusterService
      • setClusterGroups

        public void setClusterGroups​(java.util.Collection<java.lang.String> nodeGroups)
      • getClusterGroups

        public java.util.Collection<java.lang.String> getClusterGroups()
        Description copied from interface: ClusterService
        Returns all cluster node groups which this instance is configured to belong to.
        Specified by:
        getClusterGroups in interface ClusterService