|
GigaSpaces XAP 9.7.2 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 | |
---|---|
FutureCleanupCloudResources |
cleanupCloudResources(long duration,
TimeUnit unit)
Cleanup all cloud resources. |
ElasticMachineProvisioningConfig |
getConfig()
|
FutureGridServiceAgents |
getDiscoveredMachinesAsync(long duration,
TimeUnit unit)
|
boolean |
isStartMachineSupported()
|
FutureMachineFailure[] |
onMachinesFailureAsync(FailedGridServiceAgent[] failedAgents,
long duration,
TimeUnit unit)
Perform the required actions following an unexpected machine failure. |
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. |
Methods inherited from interface org.openspaces.grid.gsm.machines.isolation.ElasticProcessingUnitMachineIsolationAware |
---|
setElasticProcessingUnitMachineIsolation |
Methods inherited from interface org.openspaces.grid.gsm.machines.plugins.space.ElasticMachineProvisioningSpaceAware |
---|
setElasticMachineProvisioningSpace |
Methods inherited from interface org.openspaces.grid.gsm.machines.plugins.events.ElasticMachineProvisioningProgressChangedEventListenerAware |
---|
setElasticMachineProvisioningProgressChangedEventListener |
Methods inherited from interface org.openspaces.grid.gsm.machines.plugins.events.ElasticGridServiceAgentProvisioningProgressEventListenerAware |
---|
setElasticGridServiceAgentProvisioningProgressEventListener |
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, 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 recovery
ElasticMachineProvisioningException
InterruptedException
TimeoutException
FutureStoppedMachine stopMachineAsync(GridServiceAgent agent, long duration, TimeUnit unit)
agent
- duration
- unit
-
TimeoutException
InterruptedException
ElasticMachineProvisioningException
FutureCleanupCloudResources cleanupCloudResources(long duration, TimeUnit unit)
FutureMachineFailure[] onMachinesFailureAsync(FailedGridServiceAgent[] failedAgents, long duration, TimeUnit unit)
failedAgents
- - list of agents that require recovery
ElasticMachineProvisioningException
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |