|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NonBlockingElasticMachineProvisioning
An Elastic Service Manager plug-in that enables starting, stopping and discovering of virtual machines. The plugin must be stateless, and is expected to delegate calls to a remote service (such as a cloud). Calls to this class are guaranteed to be called from the same thread.
ElasticMachineProvisioning
,
NonBlockingElasticMachineProvisioningAdapter
,
ElasticMachineProvisioningConfig
Method Summary | |
---|---|
ElasticMachineProvisioningConfig |
getConfig()
|
FutureGridServiceAgents |
getDiscoveredMachinesAsync(long duration,
TimeUnit unit)
|
boolean |
isStartMachineSupported()
|
FutureGridServiceAgent[] |
startMachinesAsync(CapacityRequirements capacityRequirements,
long duration,
TimeUnit unit)
Starts a new machine with a new grid service agent with the specified zone. |
void |
stopMachineAsync(GridServiceAgent agent,
long duration,
TimeUnit unit)
Shuts down the grid service agent and the machine. |
Method Detail |
---|
boolean isStartMachineSupported()
startMachinesAsync(CapacityRequirements, long, TimeUnit)
and stopMachineAsync(GridServiceAgent, long, TimeUnit)
raise UnsupportedOperationExceptionFutureGridServiceAgents getDiscoveredMachinesAsync(long duration, TimeUnit unit)
duration
- - 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.ElasticMachineProvisioningConfig getConfig()
FutureGridServiceAgent[] startMachinesAsync(CapacityRequirements capacityRequirements, long duration, TimeUnit unit)
ElasticMachineProvisioningConfig.getGridServiceAgentZones()
and
ElasticMachineProvisioningConfig.isGridServiceAgentZoneMandatory()
This method is non blocking and returns a future object with the new grid service agent.
duration
- - the maximum duration after which a TimeoutException is raised.unit
- - the time unit for the duration
ElasticMachineProvisioningException
InterruptedException
TimeoutException
void stopMachineAsync(GridServiceAgent agent, long duration, TimeUnit unit)
agent
- duration
- unit
-
TimeoutException
InterruptedException
ElasticMachineProvisioningException
|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |