Package io.jenkins.plugins.yc
Class YCOndemandSlave
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Node
-
- hudson.model.Slave
-
- io.jenkins.plugins.yc.YCAbstractSlave
-
- io.jenkins.plugins.yc.YCOndemandSlave
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Node>
,ModelObject
,ReconfigurableDescribable<Node>
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Serializable
,OnMaster
public class YCOndemandSlave extends YCAbstractSlave
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YCOndemandSlave.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 io.jenkins.plugins.yc.YCAbstractSlave
lastFetchInstance, lastFetchTime, launchTimeout, MIN_FETCH_TIME, terminateScheduled
-
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
-
Constructor Summary
Constructors Constructor Description YCOndemandSlave(String instanceId)
Constructor for debuggingYCOndemandSlave(String name, String instanceId, String templateDescription, String remoteFS, int numExecutors, String labelString, ComputerLauncher launcher, Node.Mode mode, String initScript, String tmpDir, List<? extends NodeProperty<?>> nodeProperties, boolean stopOnTerminate, String idleTerminationMinutes, List<YCTag> tags, String cloudName, long launchTimeout)
YCOndemandSlave(String name, String instanceId, String description, String remoteFS, String labelString, String cloudName, String idleTerminationMinutes, String initScript, String tmpDir, List<? extends NodeProperty<?>> nodeProperties, long launchTimeOut, boolean stopOnTerminate, int numExecutors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form)
void
terminate()
-
Methods inherited from class io.jenkins.plugins.yc.YCAbstractSlave
createComputer, getAdminPassword, getCloud, getCloudName, getIdleTerminationMinutes, getInitScript, getInstanceId, getLaunchTimeoutInMillis, getSshPort, getStopOnTerminate, getTags, getTemplateDescription, getTmpDir, isAcceptingTasks, isAlive, isConnected, isSpecifyPassword, isStopOnTerminate, onConnected, readResolve
-
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, 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, isHoldOffLaunchUntilSave, 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
-
YCOndemandSlave
@DataBoundConstructor public YCOndemandSlave(String name, String instanceId, String templateDescription, String remoteFS, int numExecutors, String labelString, ComputerLauncher launcher, Node.Mode mode, String initScript, String tmpDir, List<? extends NodeProperty<?>> nodeProperties, boolean stopOnTerminate, String idleTerminationMinutes, List<YCTag> tags, String cloudName, long launchTimeout) throws Descriptor.FormException, IOException
- Throws:
Descriptor.FormException
IOException
-
YCOndemandSlave
public YCOndemandSlave(String instanceId) throws Descriptor.FormException, IOException
Constructor for debugging- Parameters:
instanceId
- - vm instance id- Throws:
Descriptor.FormException
IOException
-
YCOndemandSlave
public YCOndemandSlave(String name, String instanceId, String description, String remoteFS, String labelString, String cloudName, String idleTerminationMinutes, String initScript, String tmpDir, List<? extends NodeProperty<?>> nodeProperties, long launchTimeOut, boolean stopOnTerminate, int numExecutors) throws Descriptor.FormException, IOException
- Throws:
Descriptor.FormException
IOException
-
-
Method Detail
-
terminate
public void terminate()
- Specified by:
terminate
in classYCAbstractSlave
-
reconfigure
public Node reconfigure(@NonNull org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
- Specified by:
reconfigure
in interfaceReconfigurableDescribable<Node>
- Overrides:
reconfigure
in classYCAbstractSlave
- Throws:
Descriptor.FormException
-
-