Package hudson.plugins.ec2
Class EC2ComputerLauncher
java.lang.Object
hudson.model.AbstractDescribableImpl<ComputerLauncher>
hudson.slaves.ComputerLauncher
hudson.plugins.ec2.EC2ComputerLauncher
- All Implemented Interfaces:
ExtensionPoint
,Describable<ComputerLauncher>
- Direct Known Subclasses:
EC2MacLauncher
,EC2UnixLauncher
,EC2WindowsLauncher
ComputerLauncher
for EC2 that wraps the real user-specified ComputerLauncher
.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sshd.scp.client.CloseableScpClient
createScpClient
(org.apache.sshd.client.session.ClientSession session) void
launch
(SlaveComputer slaveComputer, TaskListener listener) protected abstract void
launchScript
(EC2Computer computer, TaskListener listener) Stage 2 of the launch.protected int
waitCompletion
(org.apache.sshd.client.channel.ClientChannel clientChannel, long timeout) Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
EC2ComputerLauncher
public EC2ComputerLauncher()
-
-
Method Details
-
launch
- Overrides:
launch
in classComputerLauncher
-
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)
-