public class StopOperation extends LongOperation implements IOperation.InstanceOperation
| Modifier and Type | Class and Description |
|---|---|
static class |
StopOperation.DescriptorImpl |
Operation.OperationDescriptorIOperation.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, readResolvecanPerform, getDescriptor, getTagspublic 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 IOperationInterruptedExceptionIOExceptionprotected boolean failIfNoInstanceFound()
failIfNoInstanceFound in class OperationCopyright © 2016–2019. All rights reserved.