public abstract class AbstractCapacityScaleStrategyBean extends AbstractScaleStrategyBean implements GridServiceContainerConfigAware, GridServiceAgentFailureDetectionConfigAware, RebalancingSlaEnforcementEndpointAware, ContainersSlaEnforcementEndpointAware, MachinesSlaEnforcementEndpointAware
ManualCapacityScaleStrategyBean
and AutomaticCapacityScaleStrategyBean
Constructor and Description |
---|
AbstractCapacityScaleStrategyBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Invoked by a bean factory after it has set all bean properties.
|
protected long |
calcRoundedTotalMemoryInMB() |
protected void |
enforcePlannedCapacity() |
CapacityRequirementsPerZones |
getAllocatedCapacity() |
protected ZonesConfig |
getDefaultZones() |
org.openspaces.admin.internal.pu.elastic.GridServiceContainerConfig |
getGridServiceContainerConfig() |
protected CapacityRequirementsPerZonesConfig |
getPlannedCapacity() |
protected Set<ZonesConfig> |
getPlannedZones() |
protected MachinesSlaEnforcementState.RecoveryState |
getRecoveredStateOnEsmStart(ProcessingUnit otherPu) |
protected boolean |
isGridServiceAgentZonesAware() |
protected boolean |
isUndeploying() |
protected void |
recoverStateOnEsmStart() |
void |
setAgentFailureDetectionConfig(org.openspaces.admin.internal.pu.elastic.GridServiceAgentFailureDetectionConfig agentFailureDetectionConfig) |
void |
setContainersSlaEnforcementEndpoint(ContainersSlaEnforcementEndpoint containersService) |
void |
setGridServiceContainerConfig(org.openspaces.admin.internal.pu.elastic.GridServiceContainerConfig containersConfig) |
void |
setMachinesSlaEnforcementEndpoint(MachinesSlaEnforcementEndpoint machinesService) |
protected void |
setPlannedCapacity(CapacityRequirementsPerZones plannedCapacity) |
protected boolean |
setPlannedCapacity(CapacityRequirementsPerZonesConfig newPlannedCapacity)
Call once in order to modify the behavior of
enforcePlannedCapacity() |
protected void |
setPlannedCapacity(ScaleStrategyCapacityRequirementConfig newPlannedCapacityForDefaultZone)
Call once in order to modify the behavior of
enforcePlannedCapacity()
Uses the default machine provisioning zone as the zone to start machines in. |
void |
setRebalancingSlaEnforcementEndpoint(RebalancingSlaEnforcementEndpoint relocationService) |
protected void |
setScaleStrategyConfig(ScaleStrategyConfig scaleStrategy) |
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(org.openspaces.admin.internal.pu.elastic.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(org.openspaces.admin.internal.pu.elastic.GridServiceContainerConfig containersConfig)
setGridServiceContainerConfig
in interface GridServiceContainerConfigAware
public org.openspaces.admin.internal.pu.elastic.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.