public class StopOperation extends LongOperation implements IOperation.InstanceOperation
Modifier and Type | Class and Description |
---|---|
static class |
StopOperation.DescriptorImpl |
Operation.OperationDescriptor
IOperation.BoxOperation, IOperation.InstanceOperation
Modifier and Type | Field and Description |
---|---|
static int |
AVAILABILITY_TIMEOUT_SECONDS |
Constructor and Description |
---|
StopOperation(String tags,
boolean waitForCompletion,
int waitForCompletionTimeout) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
failIfNoInstanceFound() |
void |
perform(ElasticBoxCloud cloud,
String workspace,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
TaskLogger logger) |
protected boolean |
waitForAvailable(Client client,
String instanceId,
long timeoutSeconds) |
getWaitForCompletionTimeout, isWaitForCompletion, readResolve
canPerform, getDescriptor, getTags
public static final int AVAILABILITY_TIMEOUT_SECONDS
@DataBoundConstructor public StopOperation(String tags, boolean waitForCompletion, int waitForCompletionTimeout)
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
protected boolean failIfNoInstanceFound()
failIfNoInstanceFound
in class Operation
Copyright © 2016–2019. All rights reserved.