hudson.slaves
Class AbstractCloudSlave
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Node
hudson.model.Slave
hudson.slaves.AbstractCloudSlave
- All Implemented Interfaces:
- ExtensionPoint, Describable<Node>, ModelObject, ReconfigurableDescribable<Node>, SearchableModelObject, SearchItem, AccessControlled, Serializable, OnMaster
public abstract class AbstractCloudSlave
- extends Slave
Partial implementation of Slave
to be used by AbstractCloudImpl
.
You may want to implement EphemeralNode
too.
- Since:
- 1.382
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
Constructor Summary |
AbstractCloudSlave(String name,
String nodeDescription,
String remoteFS,
int numExecutors,
Node.Mode mode,
String labelString,
ComputerLauncher launcher,
RetentionStrategy retentionStrategy,
List<? extends NodeProperty<?>> nodeProperties)
|
AbstractCloudSlave(String name,
String nodeDescription,
String remoteFS,
String numExecutors,
Node.Mode mode,
String labelString,
ComputerLauncher launcher,
RetentionStrategy retentionStrategy,
List<? extends NodeProperty<?>> nodeProperties)
|
Methods inherited from class hudson.model.Slave |
createLauncher, equals, getClockDifference, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeName, setRetentionStrategy, setUserId |
Methods inherited from class hudson.model.Node |
canTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isHoldOffLaunchUntilSave, reconfigure, toComputer |
AbstractCloudSlave
public AbstractCloudSlave(String name,
String nodeDescription,
String remoteFS,
String numExecutors,
Node.Mode mode,
String labelString,
ComputerLauncher launcher,
RetentionStrategy retentionStrategy,
List<? extends NodeProperty<?>> nodeProperties)
throws Descriptor.FormException,
IOException
- Throws:
Descriptor.FormException
IOException
AbstractCloudSlave
public AbstractCloudSlave(String name,
String nodeDescription,
String remoteFS,
int numExecutors,
Node.Mode mode,
String labelString,
ComputerLauncher launcher,
RetentionStrategy retentionStrategy,
List<? extends NodeProperty<?>> nodeProperties)
throws Descriptor.FormException,
IOException
- Throws:
Descriptor.FormException
IOException
createComputer
public abstract AbstractCloudComputer createComputer()
- Description copied from class:
Node
- Creates a new
Computer
object that acts as the UI peer of this Node
.
Nobody but Jenkins.updateComputerList()
should call this method.
- Overrides:
createComputer
in class Slave
terminate
public void terminate()
throws InterruptedException,
IOException
- Releases and removes this slave.
- Throws:
InterruptedException
IOException
_terminate
protected abstract void _terminate(TaskListener listener)
throws IOException,
InterruptedException
- Performs the removal of the underlying resource from the cloud.
- Throws:
IOException
InterruptedException
Copyright © 2004-2013. All Rights Reserved.