public class TerminateOperation extends LongOperation implements IOperation.InstanceOperation
Modifier and Type | Class and Description |
---|---|
static class |
TerminateOperation.DescriptorImpl |
Operation.OperationDescriptor
IOperation.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, readResolve
canPerform, 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 IOperation
InterruptedException
IOException
public static void terminate(net.sf.json.JSONObject instance, Client client, TaskLogger logger) throws IOException, InterruptedException
IOException
InterruptedException
protected boolean failIfNoInstanceFound()
failIfNoInstanceFound
in class Operation
Copyright © 2016–2019. All rights reserved.