public abstract class AbstractCapacityScaleStrategyBean extends AbstractScaleStrategyBean implements GridServiceContainerConfigAware, GridServiceAgentFailureDetectionConfigAware, RebalancingSlaEnforcementEndpointAware, ContainersSlaEnforcementEndpointAware, MachinesSlaEnforcementEndpointAware
ManualCapacityScaleStrategyBean and AutomaticCapacityScaleStrategyBean| Constructor and Description |
|---|
AbstractCapacityScaleStrategyBean() |
agentProvisioningCompletedEvent, agentProvisioningInProgressEvent, capacityPlanningCompletedEvent, capacityPlanningCompletedEvent, capacityPlanningInProgressEvent, capacityPlanningInProgressEvent, containerProvisioningCompletedEvent, containerProvisioningInProgressEvent, destroy, enforceSla, 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, validateAllProcessingUnitsRecoveredStateOnEsmStartclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigpublic void setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint machinesService)
setMachinesSlaEnforcementEndpoint in interface MachinesSlaEnforcementEndpointAwarepublic void setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService)
setContainersSlaEnforcementEndpoint in interface ContainersSlaEnforcementEndpointAwarepublic void setRebalancingSlaEnforcementEndpoint(RebalancingSlaEnforcementEndpoint relocationService)
setRebalancingSlaEnforcementEndpoint in interface RebalancingSlaEnforcementEndpointAwarepublic void setAgentFailureDetectionConfig(GridServiceAgentFailureDetectionConfig agentFailureDetectionConfig)
setAgentFailureDetectionConfig in interface GridServiceAgentFailureDetectionConfigAwareprotected ZonesConfig getDefaultZones()
protected void setPlannedCapacity(CapacityRequirementsPerZones plannedCapacity)
protected void setPlannedCapacity(ScaleStrategyCapacityRequirementConfig newPlannedCapacityForDefaultZone)
enforcePlannedCapacity() Uses the
default machine provisioning zone as the zone to start machines in.protected boolean setPlannedCapacity(CapacityRequirementsPerZonesConfig newPlannedCapacity)
enforcePlannedCapacity()protected CapacityRequirementsPerZonesConfig getPlannedCapacity()
protected void setScaleStrategyConfig(ScaleStrategyConfig scaleStrategy)
public void setGridServiceContainerConfig(GridServiceContainerConfig containersConfig)
setGridServiceContainerConfig in interface GridServiceContainerConfigAwarepublic GridServiceContainerConfig getGridServiceContainerConfig()
public void afterPropertiesSet()
BeanafterPropertiesSet in interface BeanafterPropertiesSet in class AbstractScaleStrategyBeanBeanConfigurationException,
BeanInitializationExceptionprotected void enforcePlannedCapacity()
throws SlaEnforcementInProgressException
protected Set<ZonesConfig> getPlannedZones()
protected long calcRoundedTotalMemoryInMB()
protected boolean isUndeploying()
isUndeploying in class AbstractScaleStrategyBeanprotected void recoverStateOnEsmStart()
throws MachinesSlaEnforcementInProgressException,
SomeProcessingUnitsHaveNotCompletedStateRecoveryException,
NeedToWaitUntilAllGridServiceAgentsDiscoveredException,
UndeployInProgressException
protected MachinesSlaEnforcementState.RecoveryState getRecoveredStateOnEsmStart(ProcessingUnit otherPu)
getRecoveredStateOnEsmStart in class AbstractScaleStrategyBeanpublic CapacityRequirementsPerZones getAllocatedCapacity() throws MachinesSlaEnforcementInProgressException
protected boolean isGridServiceAgentZonesAware()
Copyright © GigaSpaces.