public interface NonBlockingElasticMachineProvisioning extends ElasticProcessingUnitMachineIsolationAware, ElasticMachineProvisioningProgressChangedEventListenerAware, ElasticGridServiceAgentProvisioningProgressEventListenerAware
ElasticMachineProvisioning,
NonBlockingElasticMachineProvisioningAdapter,
ElasticMachineProvisioningConfig| Modifier and Type | Method and Description |
|---|---|
FutureCleanupCloudResources |
cleanupCloudResources(long duration,
TimeUnit unit)
Cleanup all cloud resources.
|
ElasticMachineProvisioningConfig |
getConfig() |
FutureGridServiceAgents |
getDiscoveredMachinesAsync(long duration,
TimeUnit unit) |
boolean |
isStartMachineSupported() |
FutureGridServiceAgent[] |
startMachinesAsync(CapacityRequirements capacityRequirements,
ExactZonesConfig zones,
FailedGridServiceAgent[] failedAgents,
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.
|
setElasticProcessingUnitMachineIsolationsetElasticMachineProvisioningProgressChangedEventListenersetElasticGridServiceAgentProvisioningProgressEventListenerboolean 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 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.ElasticMachineProvisioningConfig getConfig()
FutureGridServiceAgent[] startMachinesAsync(CapacityRequirements capacityRequirements, ExactZonesConfig zones, FailedGridServiceAgent[] failedAgents, long duration, TimeUnit unit)
capacityRequirements - - total capacity of new machineszones - - the agent zones.duration - - the maximum duration after which a TimeoutException is raised.unit - - the time unit for the duration.failedAgents - - list of agents that require recoveryElasticMachineProvisioningExceptionInterruptedExceptionTimeoutExceptionFutureStoppedMachine stopMachineAsync(GridServiceAgent agent, long duration, TimeUnit unit)
agent - duration - unit - TimeoutExceptionInterruptedExceptionElasticMachineProvisioningExceptionFutureCleanupCloudResources cleanupCloudResources(long duration, TimeUnit unit)
Copyright © GigaSpaces.