public class UndeployScaleStrategyBean extends AbstractScaleStrategyBean implements ContainersSlaEnforcementEndpointAware, MachinesSlaEnforcementEndpointAware, GridServiceContainerConfigAware
| Constructor and Description |
|---|
UndeployScaleStrategyBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by a bean factory after it has set all bean properties.
|
void |
enforceSla() |
ScaleStrategyConfig |
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) |
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, validateAllProcessingUnitsRecoveredStateOnEsmStartpublic void setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint endpoint)
setMachinesSlaEnforcementEndpoint in interface MachinesSlaEnforcementEndpointAwarepublic void setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService)
setContainersSlaEnforcementEndpoint in interface ContainersSlaEnforcementEndpointAwarepublic void setGridServiceContainerConfig(GridServiceContainerConfig containersConfig)
setGridServiceContainerConfig in interface GridServiceContainerConfigAwarepublic void afterPropertiesSet()
BeanafterPropertiesSet in interface BeanafterPropertiesSet in class AbstractScaleStrategyBeanBeanConfigurationException,
BeanInitializationExceptionpublic void enforceSla()
throws SlaEnforcementInProgressException
enforceSla in class AbstractScaleStrategyBeanSlaEnforcementInProgressExceptionpublic ScaleStrategyConfig getConfig()
getConfig in interface ScaleStrategyBeanprotected boolean isUndeploying()
isUndeploying in class AbstractScaleStrategyBeanprotected void recoverStateOnEsmStart()
throws MachinesSlaEnforcementInProgressException,
SomeProcessingUnitsHaveNotCompletedStateRecoveryException,
NeedToWaitUntilAllGridServiceAgentsDiscoveredException,
UndeployInProgressException
protected MachinesSlaEnforcementState.RecoveryState getRecoveredStateOnEsmStart(ProcessingUnit otherPu)
getRecoveredStateOnEsmStart in class AbstractScaleStrategyBeanCopyright © GigaSpaces.