Class BootSource
java.lang.Object
hudson.model.AbstractDescribableImpl<BootSource>
jenkins.plugins.openstack.compute.slaveopts.BootSource
- All Implemented Interfaces:
Describable<BootSource>
,Serializable
- Direct Known Subclasses:
BootSource.Image
,BootSource.Unspecified
,BootSource.VolumeSnapshot
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public abstract class BootSource
extends AbstractDescribableImpl<BootSource>
implements Serializable
The source media (Image, VolumeSnapshot etc) that the Instance is booted from.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static final class
No boot source specified.static final class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterProvisioning
(org.openstack4j.model.compute.Server server, Openstack openstack) Called after a server has been provisioned.protected String
selectIdFromListAndLogProblems
(List<String> matchingIds, String name, String pluralOfNameType) void
setServerBootSource
(org.openstack4j.model.compute.builder.ServerCreateBuilder builder, Openstack os) Configures the givenServerCreateBuilder
to specify that the newly provisioned server should boot from the specified ID.
-
Constructor Details
-
BootSource
public BootSource()
-
-
Method Details
-
setServerBootSource
public void setServerBootSource(@Nonnull org.openstack4j.model.compute.builder.ServerCreateBuilder builder, @Nonnull Openstack os) throws JCloudsCloud.ProvisioningFailedException Configures the givenServerCreateBuilder
to specify that the newly provisioned server should boot from the specified ID.- Parameters:
builder
- The server specification that is under construction. This will be amended.os
- Openstack.- Throws:
JCloudsCloud.ProvisioningFailedException
- Unable to configure the request. Do not provision.
-
afterProvisioning
public void afterProvisioning(@Nonnull org.openstack4j.model.compute.Server server, @Nonnull Openstack openstack) throws JCloudsCloud.ProvisioningFailedException Called after a server has been provisioned.- Parameters:
server
- The newly-provisioned server.openstack
- Means of communicating with the OpenStack service.- Throws:
JCloudsCloud.ProvisioningFailedException
- Unable to amend the server so it has to be rolled-back.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BootSource>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BootSource>
-
selectIdFromListAndLogProblems
-