public abstract class AbstractScaleStrategyBean extends Object implements ElasticMachineProvisioningAware, ProcessingUnitAware, ElasticScaleStrategyEventStorageAware, ScaleStrategyBean, ElasticProcessingUnitMachineIsolationAware, MachinesStateBackupAware, Bean, Runnable
Constructor and Description |
---|
AbstractScaleStrategyBean() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfig
protected InternalAdmin getAdmin()
protected org.apache.commons.logging.Log getLogger()
protected int getMinimumNumberOfMachines()
public Map<String,String> getProperties()
getProperties
in interface Bean
public void setProcessingUnit(ProcessingUnit pu)
setProcessingUnit
in interface ProcessingUnitAware
protected InternalProcessingUnit getProcessingUnit()
protected long getPollingIntervalSeconds()
public void setElasticProcessingUnitMachineIsolation(ElasticProcessingUnitMachineIsolation isolation)
setElasticProcessingUnitMachineIsolation
in interface ElasticProcessingUnitMachineIsolationAware
protected ElasticProcessingUnitMachineIsolation getIsolation()
public void setProcessingUnitSchema(ProcessingUnitSchemaConfig schemaConfig)
setProcessingUnitSchema
in interface ProcessingUnitAware
protected ProcessingUnitSchemaConfig getSchemaConfig()
public void setAdmin(Admin admin)
Bean
public void setElasticMachineProvisioning(NonBlockingElasticMachineProvisioning machineProvisioning)
setElasticMachineProvisioning
in interface ElasticMachineProvisioningAware
public void setMachinesStateBackup(MachinesStateBackup stateBackup)
setMachinesStateBackup
in interface MachinesStateBackupAware
protected NonBlockingElasticMachineProvisioning getMachineProvisioning()
public void setElasticScaleStrategyEventStorage(org.jini.rio.monitor.event.EventsStore eventQueue)
setElasticScaleStrategyEventStorage
in interface ElasticScaleStrategyEventStorageAware
protected void setMachineDiscoveryQuiteMode(boolean discoveryQuiteMode)
public void afterPropertiesSet()
Bean
afterPropertiesSet
in interface Bean
BeanConfigurationException
,
BeanInitializationException
public void destroy()
Bean
destroy
in interface Bean
BeanConfigException
public void setProperties(Map<String,String> properties)
Bean
setProperties
in interface Bean
properties
- properties to configure this bean.protected DiscoveredMachinesCache getDiscoveredMachinesCache()
protected int getMaximumNumberOfInstances()
public Fraction getContainerNumberOfCpuCores(ManualCapacityScaleConfig slaConfig)
protected abstract MachinesSlaEnforcementState.RecoveryState getRecoveredStateOnEsmStart(ProcessingUnit otherPu)
protected abstract void recoverStateOnEsmStart() throws MachinesSlaEnforcementInProgressException, SomeProcessingUnitsHaveNotCompletedStateRecoveryException, NeedToWaitUntilAllGridServiceAgentsDiscoveredException, UndeployInProgressException
protected void validateAllProcessingUnitsRecoveredStateOnEsmStart() throws SomeProcessingUnitsHaveNotCompletedStateRecoveryException
protected abstract void enforceSla() throws SlaEnforcementInProgressException
protected abstract boolean isUndeploying()
public boolean isScaleInProgress()
isScaleInProgress
in interface ScaleStrategyBean
protected void agentProvisioningCompletedEvent(ZonesConfig zones)
protected void agentProvisioningInProgressEvent(GridServiceAgentSlaEnforcementInProgressException e, ZonesConfig zones)
protected void machineProvisioningCompletedEvent(ZonesConfig zones)
protected void machineProvisioningInProgressEvent(MachinesSlaEnforcementInProgressException e, ZonesConfig zones)
protected void containerProvisioningCompletedEvent()
protected void containerProvisioningInProgressEvent(ContainersSlaEnforcementInProgressException e)
protected void puInstanceProvisioningCompletedEvent()
protected void puInstanceProvisioningInProgressEvent(RebalancingSlaEnforcementInProgressException e)
protected void capacityPlanningCompletedEvent()
protected void capacityPlanningCompletedEvent(ZonesConfig zones)
protected void capacityPlanningInProgressEvent(AutoScalingSlaEnforcementInProgressException e, ZonesConfig zones)
public void capacityPlanningInProgressEvent(ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent event)
public ElasticMachineProvisioning getElasticMachineProvisioningOrNull()
Copyright © GigaSpaces.