public interface OpenstackClient
OpenStackPoolDriver.
The configure(com.elastisys.scale.cloudpool.openstack.driver.OpenStackPoolDriverConfig) method must be called before calling any other
methods.| Modifier and Type | Method and Description |
|---|---|
String |
assignFloatingIp(String serverId)
Allocate a floating IP address and associate it with a given server.
|
void |
configure(OpenStackPoolDriverConfig configuration)
Configures this
OpenstackClient with credentials to allow it to
access the OpenStack API. |
org.jclouds.openstack.nova.v2_0.domain.Server |
getServer(String serverId)
Return meta data about a particular
Server instance. |
List<org.jclouds.openstack.nova.v2_0.domain.Server> |
getServers(String tag,
String tagValue)
Retrieves all servers that match a given tag.
|
org.jclouds.openstack.nova.v2_0.domain.Server |
launchServer(String name,
BaseCloudPoolConfig.ScaleOutConfig provisioningDetails,
Map<String,String> tags)
Launch a new server.
|
void |
tagServer(String serverId,
Map<String,String> tags)
Adds meta data tags to a given server.
|
void |
terminateServer(String serverId)
Terminates a particular server.
|
void |
untagServer(String serverId,
List<String> tagKeys)
Removes a collection of meta data tags from a given server.
|
void configure(OpenStackPoolDriverConfig configuration)
OpenstackClient with credentials to allow it to
access the OpenStack API.configuration - A client configuration.List<org.jclouds.openstack.nova.v2_0.domain.Server> getServers(String tag, String tagValue)
tag - A meta data tag that must be present on returned servers.tagValue - The value for the meta data tag that must be present on
returned servers.Servers matching the filters.org.jclouds.openstack.nova.v2_0.domain.Server getServer(String serverId) throws NotFoundException
Server instance.serverId - The identifier of the requested server.Server meta data.NotFoundException - if the server doesn't exist.org.jclouds.openstack.nova.v2_0.domain.Server launchServer(String name, BaseCloudPoolConfig.ScaleOutConfig provisioningDetails, Map<String,String> tags)
name - The name to assign to the created server.provisioningDetails - The provisioning details on how to launch the new server.tags - Meta data tags to set on the launched server.Server.String assignFloatingIp(String serverId)
serverId - The identifier of the server that will be assigned a floating
IP address.void terminateServer(String serverId) throws NotFoundException
serverId - Identifier of the server to be terminated.NotFoundException - if the server doesn't exist.void tagServer(String serverId, Map<String,String> tags) throws NotFoundException
serverId - Identifier of the server to be tagged.tags - Meta data tags to set on the server.NotFoundException - if the server doesn't exist.void untagServer(String serverId, List<String> tagKeys) throws NotFoundException
serverId - Identifier of the server to be untagged.tags - The meta data tag keys to remove from the server.NotFoundException - if the server doesn't exist.Copyright © 2011–2015 elastisys. All rights reserved.