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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic final classNo boot source specified.static final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterProvisioning(org.openstack4j.model.compute.Server server, Openstack openstack) Called after a server has been provisioned.protected StringselectIdFromListAndLogProblems(List<String> matchingIds, String name, String pluralOfNameType) voidsetServerBootSource(org.openstack4j.model.compute.builder.ServerCreateBuilder builder, Openstack os) Configures the givenServerCreateBuilderto 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 givenServerCreateBuilderto 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:
getDescriptorin interfaceDescribable<BootSource>- Overrides:
getDescriptorin classAbstractDescribableImpl<BootSource>
-
selectIdFromListAndLogProblems
-