@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class Openstack extends Object
OSClient.
The is to make sure the client is truly immutable and provide easy-to-mock abstraction for unittesting.
For server manipulation, this implementation provides metadata fingerprinting
to identify machines started via this plugin from given instance so it will not
manipulate servers it does not "own". In other words, pretends that there are no
other machines running in connected tenant.| Modifier and Type | Class and Description |
|---|---|
static class |
Openstack.ActionFailed |
| Constructor and Description |
|---|
Openstack(String endPointUrl,
String identity,
hudson.util.Secret credential,
String region) |
| Modifier and Type | Method and Description |
|---|---|
org.openstack4j.model.compute.Server |
_bootAndWaitActive(org.openstack4j.model.compute.builder.ServerCreateBuilder request,
int timeout) |
org.openstack4j.model.compute.FloatingIP |
assignFloatingIp(org.openstack4j.model.compute.Server server) |
org.openstack4j.model.compute.Server |
bootAndWaitActive(org.openstack4j.model.compute.builder.ServerCreateBuilder request,
int timeout)
Provision machine and wait until ready.
|
void |
destroyServer(org.openstack4j.model.compute.Server server)
Destroy the server.
|
static String |
getPublicAddress(org.openstack4j.model.compute.Server server)
Extract public address from server info.
|
List<? extends org.openstack4j.model.compute.Server> |
getRunningNodes() |
org.openstack4j.model.compute.Server |
getServerById(String id) |
List<? extends org.openstack4j.model.compute.Flavor> |
getSortedFlavors() |
List<? extends org.openstack4j.model.image.Image> |
getSortedImages() |
List<? extends org.openstack4j.model.network.Network> |
getSortedNetworks() |
org.openstack4j.model.compute.Server |
updateInfo(org.openstack4j.model.compute.Server server)
Fetch updated info about the server.
|
@Nonnull public List<? extends org.openstack4j.model.network.Network> getSortedNetworks()
@Nonnull public List<? extends org.openstack4j.model.compute.Flavor> getSortedFlavors()
@Nonnull public List<? extends org.openstack4j.model.compute.Server> getRunningNodes()
@Nonnull public org.openstack4j.model.compute.Server getServerById(@Nonnull String id) throws NoSuchElementException
NoSuchElementException@Nonnull public org.openstack4j.model.compute.Server bootAndWaitActive(@Nonnull org.openstack4j.model.compute.builder.ServerCreateBuilder request, @Nonnegative int timeout) throws Openstack.ActionFailed
Openstack.ActionFailed - Openstack failed to provision the slave or it was in erroneous state (server will be deleted in such case).@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.openstack4j.model.compute.Server _bootAndWaitActive(@Nonnull org.openstack4j.model.compute.builder.ServerCreateBuilder request, @Nonnegative int timeout)
@Nonnull public org.openstack4j.model.compute.Server updateInfo(@Nonnull org.openstack4j.model.compute.Server server)
public void destroyServer(@Nonnull org.openstack4j.model.compute.Server server) throws Openstack.ActionFailed
Openstack.ActionFailed - Openstack was not able to destroy the server.@Nonnull public org.openstack4j.model.compute.FloatingIP assignFloatingIp(@Nonnull org.openstack4j.model.compute.Server server)
@CheckForNull public static String getPublicAddress(@Nonnull org.openstack4j.model.compute.Server server)
Copyright © 2004-2016. All Rights Reserved.