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, validateAllProcessingUnitsRecoveredStateOnEsmStart
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfig
public void setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint machinesService)
setMachinesSlaEnforcementEndpoint
in interface MachinesSlaEnforcementEndpointAware
public void setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService)
setContainersSlaEnforcementEndpoint
in interface ContainersSlaEnforcementEndpointAware
public void setRebalancingSlaEnforcementEndpoint(RebalancingSlaEnforcementEndpoint relocationService)
setRebalancingSlaEnforcementEndpoint
in interface RebalancingSlaEnforcementEndpointAware
public void setAgentFailureDetectionConfig(GridServiceAgentFailureDetectionConfig agentFailureDetectionConfig)
setAgentFailureDetectionConfig
in interface GridServiceAgentFailureDetectionConfigAware
protected 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 GridServiceContainerConfigAware
public GridServiceContainerConfig getGridServiceContainerConfig()
public void afterPropertiesSet()
Bean
afterPropertiesSet
in interface Bean
afterPropertiesSet
in class AbstractScaleStrategyBean
BeanConfigurationException
,
BeanInitializationException
protected void enforcePlannedCapacity() throws SlaEnforcementInProgressException
protected Set<ZonesConfig> getPlannedZones()
protected long calcRoundedTotalMemoryInMB()
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
public CapacityRequirementsPerZones getAllocatedCapacity() throws MachinesSlaEnforcementInProgressException
protected boolean isGridServiceAgentZonesAware()
Copyright © GigaSpaces.