public class DiscoveredMachineProvisioningBean extends Object implements NonBlockingElasticMachineProvisioning, Bean, ProcessingUnitAware
| Constructor and Description | 
|---|
| DiscoveredMachineProvisioningBean() | 
public void setAdmin(Admin admin)
Beanpublic void setProperties(Map<String,String> properties)
BeansetProperties in interface Beanproperties - properties to configure this bean.public Map<String,String> getProperties()
getProperties in interface Beanpublic void afterPropertiesSet()
                        throws Exception
BeanafterPropertiesSet in interface BeanException - in the event of misconfiguration (such as failure to set an essential
                   property) or if initialization fails.BeanConfigurationException, 
BeanInitializationExceptionpublic void destroy()
             throws Exception
Beandestroy in interface BeanException - in case of shutdown errors. Exceptions will get logged but not re-thrown to
                   allow other beans to release their resources too.BeanConfigExceptionpublic void setProcessingUnit(ProcessingUnit pu)
setProcessingUnit in interface ProcessingUnitAwarepublic void setProcessingUnitSchema(ProcessingUnitSchemaConfig schemaConfig)
setProcessingUnitSchema in interface ProcessingUnitAwarepublic FutureGridServiceAgents getDiscoveredMachinesAsync(long duration, TimeUnit unit)
getDiscoveredMachinesAsync in interface NonBlockingElasticMachineProvisioningduration - - the maximum duration after which a TimeoutException is raised.unit - - the time unit for the durationElasticMachineProvisioningConfig
 The caller then filters the result using the criteria defined in ElasticMachineProvisioningConfig.getGridServiceAgentZones() , ElasticMachineProvisioningConfig.isGridServiceAgentZoneMandatory() and ElasticMachineProvisioningConfig.isDedicatedManagementMachines() so it is not mandatory for
 the implementation to do so.public ElasticMachineProvisioningConfig getConfig()
getConfig in interface NonBlockingElasticMachineProvisioningpublic boolean isStartMachineSupported()
isStartMachineSupported in interface NonBlockingElasticMachineProvisioning#startMachinesAsync(CapacityRequirements, long, TimeUnit) and NonBlockingElasticMachineProvisioning.stopMachineAsync(GridServiceAgent, long, TimeUnit) raise UnsupportedOperationExceptionpublic FutureStoppedMachine stopMachineAsync(GridServiceAgent agent, long duration, TimeUnit unit)
NonBlockingElasticMachineProvisioningstopMachineAsync in interface NonBlockingElasticMachineProvisioningpublic void setElasticProcessingUnitMachineIsolation(ElasticProcessingUnitMachineIsolation isolation)
setElasticProcessingUnitMachineIsolation in interface ElasticProcessingUnitMachineIsolationAwarepublic FutureGridServiceAgent[] startMachinesAsync(CapacityRequirements capacityRequirements, ExactZonesConfig zones, FailedGridServiceAgent[] failedAgents, long duration, TimeUnit unit)
NonBlockingElasticMachineProvisioningstartMachinesAsync in interface NonBlockingElasticMachineProvisioningcapacityRequirements - - total capacity of new machineszones - - the agent zones.failedAgents - - list of agents that require recoveryduration - - the maximum duration after which a TimeoutException is raised.unit - - the time unit for the duration.public void setElasticMachineProvisioningProgressChangedEventListener(ElasticMachineProvisioningProgressChangedEventListener machineEventListener)
public void setElasticGridServiceAgentProvisioningProgressEventListener(ElasticGridServiceAgentProvisioningProgressChangedEventListener agentEventListener)
public FutureCleanupCloudResources cleanupCloudResources(long duration, TimeUnit unit)
NonBlockingElasticMachineProvisioningcleanupCloudResources in interface NonBlockingElasticMachineProvisioningCopyright © GigaSpaces.