Class SSHStepExecution<T>

java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.sshsteps.util.SSHStepExecution<T>
Type Parameters:
T - the type of the return value (may be Void)
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandStep.Execution, GetStep.Execution, PutStep.Execution, RemoveStep.Execution, ScriptStep.Execution

public abstract class SSHStepExecution<T> extends org.jenkinsci.plugins.workflow.steps.StepExecution
Non-blocking step execution for ssh steps.
Author:
Naresh Rayapati
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SSHStepExecution(BasicSSHStep step, org.jenkinsci.plugins.workflow.steps.StepContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected hudson.remoting.VirtualChannel
     
     
    void
     
    protected abstract T
    run()
    Meat of the execution.
    final boolean
     
    void
    stop(Throwable cause)
    If the computation is going synchronously, try to cancel that.

    Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepExecution

    acceptAll, acceptAll, applyAll, applyAll, blocksRestart, getContext, getStatusBounded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      protected abstract T run() throws Exception
      Meat of the execution. When this method returns, a step execution is over.
      Throws:
      Exception
    • getChannel

      protected hudson.remoting.VirtualChannel getChannel()
    • start

      public final boolean start()
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.StepExecution
    • stop

      public void stop(@NonNull Throwable cause) throws Exception
      If the computation is going synchronously, try to cancel that.
      Overrides:
      stop in class org.jenkinsci.plugins.workflow.steps.StepExecution
      Throws:
      Exception
    • onResume

      public void onResume()
      Overrides:
      onResume in class org.jenkinsci.plugins.workflow.steps.StepExecution
    • getStatus

      @NonNull public String getStatus()
      Overrides:
      getStatus in class org.jenkinsci.plugins.workflow.steps.StepExecution