Class EC2ComputerLauncher

All Implemented Interfaces:
ExtensionPoint, Describable<ComputerLauncher>
Direct Known Subclasses:
EC2MacLauncher, EC2UnixLauncher, EC2WindowsLauncher

public abstract class EC2ComputerLauncher extends ComputerLauncher
ComputerLauncher for EC2 that wraps the real user-specified ComputerLauncher.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • EC2ComputerLauncher

      public EC2ComputerLauncher()
  • Method Details

    • launch

      public void launch(SlaveComputer slaveComputer, TaskListener listener)
      Overrides:
      launch in class ComputerLauncher
    • launchScript

      protected abstract void launchScript(EC2Computer computer, TaskListener listener) throws com.amazonaws.AmazonClientException, IOException, InterruptedException
      Stage 2 of the launch. Called after the EC2 instance comes up.
      Throws:
      com.amazonaws.AmazonClientException
      IOException
      InterruptedException
    • waitCompletion

      protected int waitCompletion(org.apache.sshd.client.channel.ClientChannel clientChannel, long timeout)
    • createScpClient

      protected org.apache.sshd.scp.client.CloseableScpClient createScpClient(org.apache.sshd.client.session.ClientSession session)