|
GigaSpaces XAP 9.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openspaces.grid.gsm.strategy.AbstractScaleStrategyBean
public abstract class AbstractScaleStrategyBean
Constructor Summary | |
---|---|
AbstractScaleStrategyBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Invoked by a bean factory after it has set all bean properties. |
protected void |
agentProvisioningCompletedEvent(ZonesConfig zones)
|
protected void |
agentProvisioningInProgressEvent(GridServiceAgentSlaEnforcementInProgressException e,
ZonesConfig zones)
|
protected void |
containerProvisioningCompletedEvent()
|
protected void |
containerProvisioningInProgressEvent(ContainersSlaEnforcementInProgressException e)
|
void |
destroy()
Invoked by a bean factory on destruction of a singleton. |
protected abstract void |
enforceSla()
|
protected org.openspaces.admin.internal.admin.InternalAdmin |
getAdmin()
|
org.openspaces.core.internal.commons.math.fraction.Fraction |
getContainerNumberOfCpuCores(ManualCapacityScaleConfig slaConfig)
|
protected DiscoveredMachinesCache |
getDiscoveredMachinesCache()
|
protected org.jini.rio.monitor.event.EventsStore |
getEventsStore()
|
protected ElasticProcessingUnitMachineIsolation |
getIsolation()
|
protected Log |
getLogger()
|
protected NonBlockingElasticMachineProvisioning |
getMachineProvisioning()
|
protected int |
getMaximumNumberOfInstances()
|
protected int |
getMinimumNumberOfMachines()
|
protected long |
getPollingIntervalSeconds()
|
protected org.openspaces.admin.internal.pu.InternalProcessingUnit |
getProcessingUnit()
|
Map<String,String> |
getProperties()
|
protected org.openspaces.admin.internal.pu.elastic.ProcessingUnitSchemaConfig |
getSchemaConfig()
|
protected abstract boolean |
isRecoveredStateOnEsmStart(ProcessingUnit otherPu)
|
boolean |
isScaleInProgress()
|
protected abstract boolean |
isUndeploying()
|
protected void |
machineProvisioningCompletedEvent(ZonesConfig zones)
|
protected void |
machineProvisioningInProgressEvent(MachinesSlaEnforcementInProgressException e,
ZonesConfig zones)
|
protected void |
puInstanceProvisioningCompletedEvent()
|
protected void |
puInstanceProvisioningInProgressEvent(RebalancingSlaEnforcementInProgressException e)
|
protected abstract void |
recoverStateOnEsmStart()
|
void |
run()
|
void |
setAdmin(Admin admin)
Set the Admin instance to be used by this Bean. |
void |
setElasticMachineProvisioning(NonBlockingElasticMachineProvisioning machineProvisioning)
|
void |
setElasticProcessingUnitMachineIsolation(ElasticProcessingUnitMachineIsolation isolation)
|
void |
setElasticScaleStrategyEventStorage(org.jini.rio.monitor.event.EventsStore eventQueue)
|
protected void |
setMachineDiscoveryQuiteMode(boolean discoveryQuiteMode)
|
void |
setProcessingUnit(ProcessingUnit pu)
|
void |
setProcessingUnitSchema(org.openspaces.admin.internal.pu.elastic.ProcessingUnitSchemaConfig schemaConfig)
|
void |
setProperties(Map<String,String> properties)
The bean properties supplied using a client side bean configuration object, or by plain String key-value pairs. |
protected void |
validateAllProcessingUnitsRecoveredStateOnEsmStart()
Make sure the other PUs have updated their state, so their won't be race condition on allocating discovered agents when enforcing sla. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openspaces.grid.gsm.strategy.ScaleStrategyBean |
---|
getConfig |
Constructor Detail |
---|
public AbstractScaleStrategyBean()
Method Detail |
---|
protected org.openspaces.admin.internal.admin.InternalAdmin getAdmin()
protected Log getLogger()
protected int getMinimumNumberOfMachines()
public Map<String,String> getProperties()
getProperties
in interface Bean
public void setProcessingUnit(ProcessingUnit pu)
setProcessingUnit
in interface ProcessingUnitAware
protected org.openspaces.admin.internal.pu.InternalProcessingUnit getProcessingUnit()
protected long getPollingIntervalSeconds()
public void setElasticProcessingUnitMachineIsolation(ElasticProcessingUnitMachineIsolation isolation)
setElasticProcessingUnitMachineIsolation
in interface ElasticProcessingUnitMachineIsolationAware
protected ElasticProcessingUnitMachineIsolation getIsolation()
public void setProcessingUnitSchema(org.openspaces.admin.internal.pu.elastic.ProcessingUnitSchemaConfig schemaConfig)
setProcessingUnitSchema
in interface ProcessingUnitAware
protected org.openspaces.admin.internal.pu.elastic.ProcessingUnitSchemaConfig getSchemaConfig()
public void setAdmin(Admin admin)
Bean
setAdmin
in interface Bean
admin
- an Admin instance.public void setElasticMachineProvisioning(NonBlockingElasticMachineProvisioning machineProvisioning)
setElasticMachineProvisioning
in interface ElasticMachineProvisioningAware
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 org.openspaces.core.internal.commons.math.fraction.Fraction getContainerNumberOfCpuCores(ManualCapacityScaleConfig slaConfig)
public void run()
run
in interface Runnable
protected abstract boolean isRecoveredStateOnEsmStart(ProcessingUnit otherPu)
protected abstract void recoverStateOnEsmStart() throws MachinesSlaEnforcementInProgressException, SomeProcessingUnitsHaveNotCompletedStateRecoveryException, NeedToWaitUntilAllGridServiceAgentsDiscoveredException, UndeployInProgressException
MachinesSlaEnforcementInProgressException
SomeProcessingUnitsHaveNotCompletedStateRecoveryException
NeedToWaitUntilAllGridServiceAgentsDiscoveredException
UndeployInProgressException
protected void validateAllProcessingUnitsRecoveredStateOnEsmStart() throws SomeProcessingUnitsHaveNotCompletedStateRecoveryException
SomeProcessingUnitsHaveNotCompletedStateRecoveryException
protected abstract void enforceSla() throws SlaEnforcementInProgressException
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 org.jini.rio.monitor.event.EventsStore getEventsStore()
|
GigaSpaces XAP 9.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |