public class OpenStackPoolDriver extends Object implements CloudPoolDriver
CloudPoolDriver implementation that operates against the OpenStack
cloud API.BaseCloudPool| Constructor and Description |
|---|
OpenStackPoolDriver(OpenstackClient client)
Creates a new
OpenStackPoolDriver. |
| Modifier and Type | Method and Description |
|---|---|
void |
attachMachine(String machineId) |
void |
configure(BaseCloudPoolConfig configuration) |
void |
detachMachine(String machineId) |
String |
getPoolName() |
List<Machine> |
listMachines() |
void |
setServiceState(String machineId,
ServiceState serviceState) |
List<Machine> |
startMachines(int count,
BaseCloudPoolConfig.ScaleOutConfig scaleUpConfig) |
void |
terminateMachine(String machineId) |
public OpenStackPoolDriver(OpenstackClient client)
OpenStackPoolDriver. Needs to be configured before
use.client - The client to be used to communicate with the OpenStack API.public void configure(BaseCloudPoolConfig configuration) throws CloudPoolDriverException
configure in interface CloudPoolDriverCloudPoolDriverExceptionpublic List<Machine> listMachines() throws CloudPoolDriverException
listMachines in interface CloudPoolDriverCloudPoolDriverExceptionpublic List<Machine> startMachines(int count, BaseCloudPoolConfig.ScaleOutConfig scaleUpConfig) throws StartMachinesException
startMachines in interface CloudPoolDriverStartMachinesExceptionpublic void terminateMachine(String machineId) throws CloudPoolDriverException
terminateMachine in interface CloudPoolDriverCloudPoolDriverExceptionpublic void attachMachine(String machineId) throws NotFoundException, CloudPoolDriverException
attachMachine in interface CloudPoolDriverNotFoundExceptionCloudPoolDriverExceptionpublic void detachMachine(String machineId) throws NotFoundException, CloudPoolDriverException
detachMachine in interface CloudPoolDriverNotFoundExceptionCloudPoolDriverExceptionpublic void setServiceState(String machineId, ServiceState serviceState) throws NotFoundException
setServiceState in interface CloudPoolDriverNotFoundExceptionpublic String getPoolName()
getPoolName in interface CloudPoolDriverCopyright © 2011–2015 elastisys. All rights reserved.