public class EagerScaleStrategyBean extends AbstractScaleStrategyBean implements RebalancingSlaEnforcementEndpointAware, ContainersSlaEnforcementEndpointAware, MachinesSlaEnforcementEndpointAware, GridServiceContainerConfigAware
EagerScaleConfig
Constructor and Description |
---|
EagerScaleStrategyBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Invoked by a bean factory after it has set all bean properties.
|
void |
enforceSla() |
EagerScaleConfig |
getConfig() |
protected MachinesSlaEnforcementState.RecoveryState |
getRecoveredStateOnEsmStart(ProcessingUnit otherPu) |
protected boolean |
isUndeploying() |
protected void |
recoverStateOnEsmStart() |
void |
setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService) |
void |
setGridServiceContainerConfig(GridServiceContainerConfig containersConfig) |
void |
setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint endpoint) |
void |
setRebalancingSlaEnforcementEndpoint(RebalancingSlaEnforcementEndpoint relocationService) |
agentProvisioningCompletedEvent, agentProvisioningInProgressEvent, capacityPlanningCompletedEvent, capacityPlanningCompletedEvent, capacityPlanningInProgressEvent, capacityPlanningInProgressEvent, containerProvisioningCompletedEvent, containerProvisioningInProgressEvent, destroy, getAdmin, getContainerNumberOfCpuCores, getDiscoveredMachinesCache, getElasticMachineProvisioningOrNull, getIsolation, getLogger, getMachineProvisioning, getMaximumNumberOfInstances, getMinimumNumberOfMachines, getPollingIntervalSeconds, getProcessingUnit, getProperties, getRemoteApi, getSchemaConfig, isScaleInProgress, machineProvisioningCompletedEvent, machineProvisioningInProgressEvent, puInstanceProvisioningCompletedEvent, puInstanceProvisioningInProgressEvent, run, setAdmin, setElasticMachineProvisioning, setElasticProcessingUnitMachineIsolation, setElasticScaleStrategyEventStorage, setMachineDiscoveryQuiteMode, setMachinesStateBackup, setProcessingUnit, setProcessingUnitSchema, setProperties, validateAllProcessingUnitsRecoveredStateOnEsmStart
public void setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint endpoint)
setMachinesSlaEnforcementEndpoint
in interface MachinesSlaEnforcementEndpointAware
public void setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService)
setContainersSlaEnforcementEndpoint
in interface ContainersSlaEnforcementEndpointAware
public void setRebalancingSlaEnforcementEndpoint(RebalancingSlaEnforcementEndpoint relocationService)
setRebalancingSlaEnforcementEndpoint
in interface RebalancingSlaEnforcementEndpointAware
public void setGridServiceContainerConfig(GridServiceContainerConfig containersConfig)
setGridServiceContainerConfig
in interface GridServiceContainerConfigAware
public void afterPropertiesSet()
Bean
afterPropertiesSet
in interface Bean
afterPropertiesSet
in class AbstractScaleStrategyBean
BeanConfigurationException
,
BeanInitializationException
public void enforceSla() throws SlaEnforcementInProgressException
enforceSla
in class AbstractScaleStrategyBean
SlaEnforcementInProgressException
public EagerScaleConfig getConfig()
getConfig
in interface ScaleStrategyBean
protected boolean isUndeploying()
isUndeploying
in class AbstractScaleStrategyBean
protected void recoverStateOnEsmStart() throws MachinesSlaEnforcementInProgressException, SomeProcessingUnitsHaveNotCompletedStateRecoveryException, NeedToWaitUntilAllGridServiceAgentsDiscoveredException, UndeployInProgressException
protected MachinesSlaEnforcementState.RecoveryState getRecoveredStateOnEsmStart(ProcessingUnit otherPu)
getRecoveredStateOnEsmStart
in class AbstractScaleStrategyBean
Copyright © GigaSpaces.