public class OpenStackPoolDriver extends Object implements CloudPoolDriver
CloudPoolDriver implementation that operates against OpenStack.BaseCloudPool| Constructor and Description |
|---|
OpenStackPoolDriver(OpenstackClient client,
String cloudProvider)
Creates a new
OpenStackPoolDriver. |
| Modifier and Type | Method and Description |
|---|---|
void |
attachMachine(String machineId) |
void |
configure(DriverConfig configuration) |
void |
detachMachine(String machineId) |
String |
getPoolName() |
List<Machine> |
listMachines() |
void |
setMembershipStatus(String machineId,
MembershipStatus membershipStatus) |
void |
setServiceState(String machineId,
ServiceState serviceState) |
List<Machine> |
startMachines(int count) |
void |
terminateMachine(String machineId) |
public OpenStackPoolDriver(OpenstackClient client, String cloudProvider)
OpenStackPoolDriver. Needs to be configured before
use.client - The client to be used to communicate with the OpenStack API.cloudProvider - The name of the cloud provider that the cloud pool operates
against. For example, RackSpace. This will only be
used to set the Machine.getCloudProvider() field of
pool members.public void configure(DriverConfig configuration) throws CloudPoolDriverException
configure in interface CloudPoolDriverCloudPoolDriverExceptionpublic List<Machine> listMachines() throws CloudPoolDriverException
listMachines in interface CloudPoolDriverCloudPoolDriverExceptionpublic List<Machine> startMachines(int count) 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 void setMembershipStatus(String machineId, MembershipStatus membershipStatus) throws NotFoundException, CloudPoolDriverException
setMembershipStatus in interface CloudPoolDriverNotFoundExceptionCloudPoolDriverExceptionpublic String getPoolName()
getPoolName in interface CloudPoolDriverCopyright © 2011–2017 Elastisys. All rights reserved.