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, 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(org.openspaces.admin.internal.pu.elastic.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(org.openspaces.admin.internal.pu.elastic.GridServiceContainerConfig containersConfig)
setGridServiceContainerConfig in interface GridServiceContainerConfigAwarepublic org.openspaces.admin.internal.pu.elastic.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.