public class HttpRequestFactory extends Object implements RequestFactory
RequestFactory that produces request tasks that invoke cloud
adapters over HTTP.Splitter| Constructor and Description |
|---|
HttpRequestFactory() |
public Callable<MachinePool> newGetMachinePoolRequest(PrioritizedCloudAdapter cloudAdapter)
RequestFactoryCallable that calls
CloudAdapter.getMachinePool() on the remote cloud adapter.newGetMachinePoolRequest in interface RequestFactorypublic Callable<PoolSizeSummary> newGetPoolSizeRequest(PrioritizedCloudAdapter cloudAdapter)
RequestFactoryCallable that calls CloudAdapter.getPoolSize()
on the remote cloud adapter.newGetPoolSizeRequest in interface RequestFactorypublic Callable<Void> newSetDesiredSizeRequest(PrioritizedCloudAdapter cloudAdapter, int desiredSize)
RequestFactoryCallable that calls
CloudAdapter.setDesiredSize(int) on the remote cloud adapter.newSetDesiredSizeRequest in interface RequestFactorypublic Callable<Void> newTerminateMachineRequest(PrioritizedCloudAdapter cloudAdapter, String machineId, boolean decrementDesiredSize)
RequestFactoryCallable that calls
CloudAdapter.terminateMachine(String, boolean) on the remote
cloud adapter.newTerminateMachineRequest in interface RequestFactorypublic Callable<Void> newSetServiceStateRequest(PrioritizedCloudAdapter cloudAdapter, String machineId, ServiceState serviceState)
RequestFactoryCallable that calls
CloudAdapter.setServiceState(String, ServiceState) on the remote
cloud adapter.newSetServiceStateRequest in interface RequestFactorypublic Callable<Void> newAttachMachineRequest(PrioritizedCloudAdapter cloudAdapter, String machineId)
RequestFactoryCallable that calls
CloudAdapter.attachMachine(String) on the remote cloud adapter.newAttachMachineRequest in interface RequestFactorypublic Callable<Void> newDetachMachineRequest(PrioritizedCloudAdapter cloudAdapter, String machineId, boolean decrementDesiredSize)
RequestFactoryCallable that calls
CloudAdapter.detachMachine(String, boolean) on the remote cloud
adapter.newDetachMachineRequest in interface RequestFactoryCopyright © 2011–2015 elastisys. All rights reserved.