T - the type of the return value (may be Void)public abstract class SSHStepExecution<T>
extends org.jenkinsci.plugins.workflow.steps.StepExecution
StepExecution,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
SSHStepExecution(BasicSSHStep step,
org.jenkinsci.plugins.workflow.steps.StepContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected hudson.remoting.VirtualChannel |
getChannel() |
Launcher |
getLauncher() |
TaskListener |
getListener() |
String |
getStatus() |
BasicSSHStep |
getStep() |
void |
onResume() |
protected abstract T |
run()
Meat of the execution.
|
boolean |
start() |
void |
stop(Throwable cause)
If the computation is going synchronously, try to cancel that.
|
protected SSHStepExecution(BasicSSHStep step, @Nonnull org.jenkinsci.plugins.workflow.steps.StepContext context) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected abstract T run() throws Exception
Exceptionprotected hudson.remoting.VirtualChannel getChannel()
public final boolean start()
start in class org.jenkinsci.plugins.workflow.steps.StepExecutionpublic void stop(Throwable cause) throws Exception
stop in class org.jenkinsci.plugins.workflow.steps.StepExecutionExceptionpublic void onResume()
onResume in class org.jenkinsci.plugins.workflow.steps.StepExecution@Nonnull public String getStatus()
getStatus in class org.jenkinsci.plugins.workflow.steps.StepExecutionpublic TaskListener getListener()
public Launcher getLauncher()
public BasicSSHStep getStep()
Copyright © 2018–2022. All rights reserved.