public class OpenStackScalingGroup extends Object implements ScalingGroup
ScalingGroup implementation that operates against the OpenStack
cloud API.BaseCloudAdapter| Constructor and Description |
|---|
OpenStackScalingGroup(OpenstackClient client)
Creates a new
OpenStackScalingGroup. |
| Modifier and Type | Method and Description |
|---|---|
void |
attachMachine(String machineId) |
void |
configure(BaseCloudAdapterConfig configuration) |
void |
detachMachine(String machineId) |
String |
getScalingGroupName() |
List<Machine> |
listMachines() |
void |
setServiceState(String machineId,
ServiceState serviceState) |
List<Machine> |
startMachines(int count,
BaseCloudAdapterConfig.ScaleUpConfig scaleUpConfig) |
void |
terminateMachine(String machineId) |
public OpenStackScalingGroup(OpenstackClient client)
OpenStackScalingGroup. Needs to be configured
before use.client - The client to be used to communicate with the OpenStack API.public void configure(BaseCloudAdapterConfig configuration) throws ScalingGroupException
configure in interface ScalingGroupScalingGroupExceptionpublic List<Machine> listMachines() throws ScalingGroupException
listMachines in interface ScalingGroupScalingGroupExceptionpublic List<Machine> startMachines(int count, BaseCloudAdapterConfig.ScaleUpConfig scaleUpConfig) throws StartMachinesException
startMachines in interface ScalingGroupStartMachinesExceptionpublic void terminateMachine(String machineId) throws ScalingGroupException
terminateMachine in interface ScalingGroupScalingGroupExceptionpublic void attachMachine(String machineId) throws NotFoundException, ScalingGroupException
attachMachine in interface ScalingGroupNotFoundExceptionScalingGroupExceptionpublic void detachMachine(String machineId) throws NotFoundException, ScalingGroupException
detachMachine in interface ScalingGroupNotFoundExceptionScalingGroupExceptionpublic void setServiceState(String machineId, ServiceState serviceState) throws NotFoundException
setServiceState in interface ScalingGroupNotFoundExceptionpublic String getScalingGroupName()
getScalingGroupName in interface ScalingGroupCopyright © 2011–2015 elastisys. All rights reserved.