Class JCloudsSlaveTemplate
java.lang.Object
jenkins.plugins.openstack.compute.JCloudsSlaveTemplate
- All Implemented Interfaces:
Describable<JCloudsSlaveTemplate>,SlaveOptions.Holder
public class JCloudsSlaveTemplate
extends Object
implements Describable<JCloudsSlaveTemplate>, SlaveOptions.Holder
- Author:
- Vijay Kiran
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProvision(Label label) Get effective options declared by this object.getName()Get configured options held by this object.org.openstack4j.model.compute.ServerprovisionServer(ServerScope scope, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) provisionSlave(JCloudsCloud cloud, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) Provision and connect as a slave.
-
Field Details
-
OPENSTACK_CLOUD_NAME_KEY
- See Also:
-
OPENSTACK_TEMPLATE_NAME_KEY
- See Also:
-
-
Constructor Details
-
JCloudsSlaveTemplate
@DataBoundConstructor public JCloudsSlaveTemplate(@Nonnull String name, @Nonnull String labels, @CheckForNull SlaveOptions slaveOptions)
-
-
Method Details
-
getEffectiveSlaveOptions
Description copied from interface:SlaveOptions.HolderGet effective options declared by this object. This is supposed to correctly evaluate all the overriding.- Specified by:
getEffectiveSlaveOptionsin interfaceSlaveOptions.Holder
-
getRawSlaveOptions
Description copied from interface:SlaveOptions.HolderGet configured options held by this object. This holds only the user configured diffs compared to parent.- Specified by:
getRawSlaveOptionsin interfaceSlaveOptions.Holder
-
getLabelSet
-
getName
-
getLabels
-
canProvision
-
provisionSlave
@Nonnull public JCloudsSlave provisionSlave(@Nonnull JCloudsCloud cloud, @Nonnull org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) throws JCloudsCloud.ProvisioningFailedException Provision and connect as a slave. The node is to be added to Jenkins by the caller. At the time the method completes, the node is ready to be launched.- Throws:
Openstack.ActionFailed- Provisioning failed.JCloudsCloud.ProvisioningFailedException- Provisioning failed.
-
provisionServer
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public org.openstack4j.model.compute.Server provisionServer(@CheckForNull ServerScope scope, @CheckForNull org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) throws Openstack.ActionFailed - Throws:
Openstack.ActionFailed
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<JCloudsSlaveTemplate>
-