Class MockClusterService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.cluster.MockClusterService
- All Implemented Interfaces:
ClusterService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all cluster node groups which this instance is configured to belong to.intThe current cluster id which is unique for each java process in the cluster island.longAn unique string identifying the complete cluster.boolean'true' ONLY IF the correspondig property is set to 'true' AND the installed licence file supports this feature, toovoidsetClusterGroups(Collection<String> nodeGroups) voidsetClusterId(int clusterId) voidsetClusterIslandId(long clusterIslandId) Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
MockClusterService
public MockClusterService()
-
-
Method Details
-
getClusterId
public int getClusterId()Description copied from interface:ClusterServiceThe current cluster id which is unique for each java process in the cluster island.- Specified by:
getClusterIdin interfaceClusterService- Returns:
- the cluster id
-
setClusterId
public void setClusterId(int clusterId) -
getClusterIslandId
public long getClusterIslandId()Description copied from interface:ClusterServiceAn 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:
getClusterIslandIdin interfaceClusterService- 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:
isClusteringEnabledin interfaceClusterService
-
setClusterGroups
-
getClusterGroups
Description copied from interface:ClusterServiceReturns all cluster node groups which this instance is configured to belong to.- Specified by:
getClusterGroupsin interfaceClusterService
-