org.openspaces.pu.sla
Class PrimaryZoneController
java.lang.Object
org.openspaces.pu.sla.PrimaryZoneController
- All Implemented Interfaces:
- ClusterInfoAware, DisposableBean, InitializingBean
public class PrimaryZoneController
- extends Object
- implements InitializingBean, DisposableBean, ClusterInfoAware
PrimaryZoneController
is a task that runs periodically and checks if
primary-zone definition is violated:
1. backups in primary zone
2. primaries in backup zone if it happens instances are restarted and balance is restored.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimaryZoneController
public PrimaryZoneController()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
getPrimaryZone
public String getPrimaryZone()
setPrimaryZone
public void setPrimaryZone(String primaryZone)
destroy
public void destroy()
- Specified by:
destroy
in interface DisposableBean
getDelayBetweenChecks
public int getDelayBetweenChecks()
setDelayBetweenChecks
public void setDelayBetweenChecks(int delayBetweenChecks)
setClusterInfo
public void setClusterInfo(ClusterInfo clusterInfo)
- Description copied from interface:
ClusterInfoAware
- Sets the cluster information.
Note, the cluster information is obtained externally from the application context which means
that this feature need to be supported by specific containers (and is not supported by plain
Spring application context). This means that beans that implement ClusterInfoAware
should take into account the fact that the cluster info provided might be null.
- Specified by:
setClusterInfo
in interface ClusterInfoAware
- Parameters:
clusterInfo
- The cluster information to be injected
getSecurityConfig
public SecurityConfig getSecurityConfig()
setSecurityConfig
public void setSecurityConfig(SecurityConfig securityConfig)
Copyright © GigaSpaces.