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, validateAllProcessingUnitsRecoveredStateOnEsmStart
public void setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint endpoint)
setMachinesSlaEnforcementEndpoint
in interface MachinesSlaEnforcementEndpointAware
public void setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService)
setContainersSlaEnforcementEndpoint
in interface ContainersSlaEnforcementEndpointAware
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 ScaleStrategyConfig 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.