public class TerminateOperation extends LongOperation implements IOperation.InstanceOperation
| Modifier and Type | Class and Description |
|---|---|
static class |
TerminateOperation.DescriptorImpl |
Operation.OperationDescriptorIOperation.BoxOperation, IOperation.InstanceOperation| Constructor and Description |
|---|
TerminateOperation(String tags,
boolean waitForCompletion,
int waitForCompletionTimeout,
boolean force,
boolean delete) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
failIfNoInstanceFound() |
boolean |
isDelete() |
boolean |
isForce() |
void |
perform(ElasticBoxCloud cloud,
String workspace,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
TaskLogger logger) |
static void |
terminate(net.sf.json.JSONObject instance,
Client client,
TaskLogger logger) |
getWaitForCompletionTimeout, isWaitForCompletion, readResolvecanPerform, getDescriptor, getTags@DataBoundConstructor public TerminateOperation(String tags, boolean waitForCompletion, int waitForCompletionTimeout, boolean force, boolean delete)
public boolean isDelete()
public boolean isForce()
public void perform(ElasticBoxCloud cloud, String workspace, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, TaskLogger logger) throws InterruptedException, IOException
perform in interface IOperationInterruptedExceptionIOExceptionpublic static void terminate(net.sf.json.JSONObject instance,
Client client,
TaskLogger logger)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected boolean failIfNoInstanceFound()
failIfNoInstanceFound in class OperationCopyright © 2016–2019. All rights reserved.