Package org.jenkinsci.plugins.nomad
Class NomadWorker
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Node
-
- hudson.model.Slave
-
- hudson.slaves.AbstractCloudSlave
-
- org.jenkinsci.plugins.nomad.NomadWorker
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Node>,ModelObject,ReconfigurableDescribable<Node>,Saveable,SearchableModelObject,SearchItem,AccessControlled,EphemeralNode,Serializable,OnMaster
public class NomadWorker extends AbstractCloudSlave implements EphemeralNode
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNomadWorker.DescriptorImpl-
Nested classes/interfaces inherited from class hudson.model.Slave
Slave.JnlpJar, Slave.SlaveDescriptor
-
Nested classes/interfaces inherited from class hudson.model.Node
Node.InternalComputerListener, Node.Mode
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
-
Constructor Summary
Constructors Constructor Description NomadWorker(String name, String cloudName, String labelString, int numExecutors, int idleTerminationInMinutes, boolean reusable, String remoteFS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_terminate(TaskListener listener)NodeasNode()AbstractCloudComputer<NomadWorker>createComputer()NomadCloudgetCloud()StringgetCloudName()intgetIdleTerminationInMinutes()StringgetNamespace()StringgetRegion()booleanisReusable()voidsetNamespace(String namespace)voidsetRegion(String region)-
Methods inherited from class hudson.slaves.AbstractCloudSlave
terminate
-
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toString
-
Methods inherited from class hudson.model.Node
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputer
-
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, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
NomadWorker
@DataBoundConstructor public NomadWorker(String name, String cloudName, String labelString, int numExecutors, int idleTerminationInMinutes, boolean reusable, String remoteFS) throws Descriptor.FormException, IOException
- Throws:
Descriptor.FormExceptionIOException
-
-
Method Detail
-
asNode
public Node asNode()
- Specified by:
asNodein interfaceEphemeralNode
-
createComputer
public AbstractCloudComputer<NomadWorker> createComputer()
- Specified by:
createComputerin classAbstractCloudSlave
-
_terminate
protected void _terminate(TaskListener listener)
- Specified by:
_terminatein classAbstractCloudSlave
-
getCloud
public NomadCloud getCloud()
-
getCloudName
public String getCloudName()
-
isReusable
public boolean isReusable()
-
getIdleTerminationInMinutes
public int getIdleTerminationInMinutes()
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
-
-