@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public abstract class BootSource extends hudson.model.AbstractDescribableImpl<BootSource> implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BootSource.BootSourceDescriptor |
static class |
BootSource.Image |
static class |
BootSource.Unspecified
No boot source specified.
|
static class |
BootSource.VolumeFromImage |
static class |
BootSource.VolumeSnapshot |
Constructor and Description |
---|
BootSource() |
Modifier and Type | Method and Description |
---|---|
void |
afterProvisioning(org.openstack4j.model.compute.Server server,
Openstack openstack)
Called after a server has been provisioned.
|
BootSource.BootSourceDescriptor |
getDescriptor() |
protected String |
selectIdFromListAndLogProblems(List<String> matchingIds,
String name,
String pluralOfNameType) |
void |
setServerBootSource(org.openstack4j.model.compute.builder.ServerCreateBuilder builder,
Openstack os)
Configures the given
ServerCreateBuilder to specify that the
newly provisioned server should boot from the specified ID. |
public void setServerBootSource(@Nonnull org.openstack4j.model.compute.builder.ServerCreateBuilder builder, @Nonnull Openstack os) throws JCloudsCloud.ProvisioningFailedException
ServerCreateBuilder
to specify that the
newly provisioned server should boot from the specified ID.builder
- The server specification that is under construction. This will
be amended.os
- Openstack.JCloudsCloud.ProvisioningFailedException
- Unable to configure the request. Do not provision.public void afterProvisioning(@Nonnull org.openstack4j.model.compute.Server server, @Nonnull Openstack openstack) throws JCloudsCloud.ProvisioningFailedException
server
- The newly-provisioned server.openstack
- Means of communicating with the OpenStack service.JCloudsCloud.ProvisioningFailedException
- Unable to amend the server so it has to be rolled-back.public BootSource.BootSourceDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<BootSource>
getDescriptor
in class hudson.model.AbstractDescribableImpl<BootSource>
Copyright © 2016–2018. All rights reserved.