Package org.jenkinsci.plugins.nomad
Class NomadCloud
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- hudson.slaves.AbstractCloudImpl
-
- org.jenkinsci.plugins.nomad.NomadCloud
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Cloud>,ModelObject,SearchableModelObject,SearchItem,AccessControlled,ModelObjectWithContextMenu
public class NomadCloud extends AbstractCloudImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNomadCloud.DescriptorImpl-
Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Constructor Summary
Constructors Constructor Description NomadCloud(String name, String nomadUrl, boolean tlsEnabled, String clientCertificate, Secret clientPassword, String serverCertificate, Secret serverPassword, int workerTimeout, String nomadACLCredentialsId, boolean prune, List<NomadWorkerTemplate> templates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanProvision(Label label)StringgetClientCertificate()SecretgetClientPassword()StringgetName()StringgetNomadACL()StringgetNomadACLCredentialsId()StringgetNomadUrl()intgetPending()StringgetServerCertificate()SecretgetServerPassword()NomadWorkerTemplategetTemplate(Label label)List<NomadWorkerTemplate>getTemplates()intgetWorkerTimeout()booleanisPrune()booleanisTlsEnabled()NomadApinomad()Collection<NodeProvisioner.PlannedNode>provision(Label label, int excessWorkload)voidsetNomad(NomadApi nomad)-
Methods inherited from class hudson.slaves.AbstractCloudImpl
getInstanceCap, getInstanceCapStr, setInstanceCap, setInstanceCapStr
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl, provision, registerPermissions
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
NomadCloud
@DataBoundConstructor public NomadCloud(String name, String nomadUrl, boolean tlsEnabled, String clientCertificate, Secret clientPassword, String serverCertificate, Secret serverPassword, int workerTimeout, String nomadACLCredentialsId, boolean prune, List<NomadWorkerTemplate> templates)
-
-
Method Detail
-
provision
public Collection<NodeProvisioner.PlannedNode> provision(Label label, int excessWorkload)
-
getTemplate
public NomadWorkerTemplate getTemplate(Label label)
-
canProvision
public boolean canProvision(Label label)
- Overrides:
canProvisionin classCloud
-
getName
public String getName()
-
getNomadUrl
public String getNomadUrl()
-
getWorkerTimeout
public int getWorkerTimeout()
-
getNomadACLCredentialsId
public String getNomadACLCredentialsId()
-
getNomadACL
public String getNomadACL()
-
isPrune
public boolean isPrune()
-
getTemplates
public List<NomadWorkerTemplate> getTemplates()
-
setNomad
public void setNomad(NomadApi nomad)
-
getPending
public int getPending()
-
nomad
public NomadApi nomad()
-
isTlsEnabled
public boolean isTlsEnabled()
-
getClientCertificate
public String getClientCertificate()
-
getClientPassword
public Secret getClientPassword()
-
getServerCertificate
public String getServerCertificate()
-
getServerPassword
public Secret getServerPassword()
-
-