| 
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.machines.plugins.discovered.DiscoveredMachineProvisioningBean
public class DiscoveredMachineProvisioningBean
| Constructor Summary | |
|---|---|
DiscoveredMachineProvisioningBean()
 | 
|
| Method Summary | |
|---|---|
 void | 
afterPropertiesSet()
Invoked by a bean factory after it has set all bean properties.  | 
 void | 
destroy()
Invoked by a bean factory on destruction of a singleton.  | 
 ElasticMachineProvisioningConfig | 
getConfig()
 | 
 FutureGridServiceAgents | 
getDiscoveredMachinesAsync(long duration,
                           TimeUnit unit)
 | 
 Map<String,String> | 
getProperties()
 | 
 boolean | 
isStartMachineSupported()
 | 
 void | 
setAdmin(Admin admin)
Set the Admin instance to be used by this Bean.  | 
 void | 
setElasticGridServiceAgentProvisioningProgressEventListener(ElasticGridServiceAgentProvisioningProgressChangedEventListener agentEventListener)
 | 
 void | 
setElasticMachineProvisioningProgressChangedEventListener(ElasticMachineProvisioningProgressChangedEventListener machineEventListener)
 | 
 void | 
setElasticProcessingUnitMachineIsolation(ElasticProcessingUnitMachineIsolation isolation)
 | 
 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.  | 
 FutureGridServiceAgent[] | 
startMachinesAsync(CapacityRequirements capacityRequirements,
                   ExactZonesConfig zones,
                   long duration,
                   TimeUnit unit)
Starts a new machine with a new grid service agent with the specified grid service agent zones.  | 
 FutureStoppedMachine | 
stopMachineAsync(GridServiceAgent agent,
                 long duration,
                 TimeUnit unit)
Shuts down the grid service agent and the machine.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DiscoveredMachineProvisioningBean()
| Method Detail | 
|---|
public void setAdmin(Admin admin)
Bean
setAdmin in interface Beanadmin - an Admin instance.public void setProperties(Map<String,String> properties)
Bean
setProperties in interface Beanproperties - properties to configure this bean.public Map<String,String> getProperties()
getProperties in interface Bean
public void afterPropertiesSet()
                        throws Exception
Bean
afterPropertiesSet in interface BeanException - in the event of misconfiguration (such as failure to set an essential property)
             or if initialization fails.BeanConfigurationException, 
BeanInitializationException
public void destroy()
             throws Exception
Bean
destroy 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(org.openspaces.admin.internal.pu.elastic.ProcessingUnitSchemaConfig schemaConfig)
setProcessingUnitSchema in interface ProcessingUnitAware
public 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 duration
ElasticMachineProvisioningConfig 
 
 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 UnsupportedOperationException
public FutureStoppedMachine stopMachineAsync(GridServiceAgent agent,
                                             long duration,
                                             TimeUnit unit)
NonBlockingElasticMachineProvisioning
stopMachineAsync in interface NonBlockingElasticMachineProvisioningpublic void setElasticProcessingUnitMachineIsolation(ElasticProcessingUnitMachineIsolation isolation)
setElasticProcessingUnitMachineIsolation in interface ElasticProcessingUnitMachineIsolationAware
public FutureGridServiceAgent[] startMachinesAsync(CapacityRequirements capacityRequirements,
                                                   ExactZonesConfig zones,
                                                   long duration,
                                                   TimeUnit unit)
NonBlockingElasticMachineProvisioning
startMachinesAsync in interface NonBlockingElasticMachineProvisioningduration - - the maximum duration after which a TimeoutException is raised.unit - - the time unit for the duration
public void setElasticMachineProvisioningProgressChangedEventListener(ElasticMachineProvisioningProgressChangedEventListener machineEventListener)
setElasticMachineProvisioningProgressChangedEventListener in interface ElasticMachineProvisioningProgressChangedEventListenerAwarepublic void setElasticGridServiceAgentProvisioningProgressEventListener(ElasticGridServiceAgentProvisioningProgressChangedEventListener agentEventListener)
setElasticGridServiceAgentProvisioningProgressEventListener in interface ElasticGridServiceAgentProvisioningProgressEventListenerAware
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||