GigaSpaces XAP 9.7.2 API

org.openspaces.pu.sla
Class PrimaryZoneController

java.lang.Object
  extended by 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.


Constructor Summary
PrimaryZoneController()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 int getDelayBetweenChecks()
           
 String getPrimaryZone()
           
 SecurityConfig getSecurityConfig()
           
 void setClusterInfo(ClusterInfo clusterInfo)
          Sets the cluster information.
 void setDelayBetweenChecks(int delayBetweenChecks)
           
 void setPrimaryZone(String primaryZone)
           
 void setSecurityConfig(SecurityConfig securityConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimaryZoneController

public PrimaryZoneController()
Method Detail

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)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.