Package hudson.plugins.ec2.ssh
Class EC2SSHLauncher
java.lang.Object
hudson.model.AbstractDescribableImpl<ComputerLauncher>
hudson.slaves.ComputerLauncher
hudson.plugins.ec2.EC2ComputerLauncher
hudson.plugins.ec2.ssh.EC2SSHLauncher
- All Implemented Interfaces:
ExtensionPoint,Describable<ComputerLauncher>
- Direct Known Subclasses:
EC2MacLauncher,EC2UnixLauncher,EC2WindowsSSHLauncher
-
Nested Class Summary
Nested ClassesNested 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 booleanbootstrap(EC2Computer computer, TaskListener listener, SlaveTemplate template) protected StringbuildUpCommand(EC2Computer computer, String command) protected org.apache.sshd.client.session.ClientSessionconnectToSsh(org.apache.sshd.client.SshClient client, EC2Computer computer, TaskListener listener, SlaveTemplate template) protected FilecreateHostKeyFile(EC2Computer computer, String ec2HostAddress, TaskListener listener) protected FilecreateIdentityKeyFile(EC2Computer computer) protected booleanexecuteRemote(EC2Computer computer, org.apache.sshd.client.session.ClientSession clientSession, String checkCommand, String command, PrintStream logger, TaskListener listener) protected booleanexecuteRemote(org.apache.sshd.client.session.ClientSession session, String command, OutputStream logger) protected static StringgetEC2HostAddress(EC2Computer computer, SlaveTemplate template) protected static StringgetEC2HostKeyAlgorithmFlag(EC2Computer computer) protected voidlaunchRemotingAgent(EC2Computer computer, TaskListener listener, String launchString, SlaveTemplate template, long timeout, PrintStream logger) protected voidlog(Level level, EC2Computer computer, TaskListener listener, String message) protected voidlogException(EC2Computer computer, TaskListener listener, String message, Throwable exception) protected voidlogInfo(EC2Computer computer, TaskListener listener, String message) protected voidlogWarning(EC2Computer computer, TaskListener listener, String message) Methods inherited from class hudson.plugins.ec2.EC2ComputerLauncher
createScpClient, launch, launchScript, waitCompletionMethods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
-
Constructor Details
-
EC2SSHLauncher
public EC2SSHLauncher()
-
-
Method Details
-
log
-
logException
protected void logException(EC2Computer computer, TaskListener listener, String message, Throwable exception) -
logInfo
-
logWarning
-
buildUpCommand
-
launchRemotingAgent
protected void launchRemotingAgent(EC2Computer computer, TaskListener listener, String launchString, SlaveTemplate template, long timeout, PrintStream logger) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
executeRemote
protected boolean executeRemote(EC2Computer computer, org.apache.sshd.client.session.ClientSession clientSession, String checkCommand, String command, PrintStream logger, TaskListener listener) -
executeRemote
protected boolean executeRemote(org.apache.sshd.client.session.ClientSession session, String command, OutputStream logger) -
createIdentityKeyFile
- Throws:
IOException
-
createHostKeyFile
protected File createHostKeyFile(EC2Computer computer, String ec2HostAddress, TaskListener listener) throws IOException - Throws:
IOException
-
bootstrap
protected boolean bootstrap(EC2Computer computer, TaskListener listener, SlaveTemplate template) throws IOException, InterruptedException, software.amazon.awssdk.core.exception.SdkException - Throws:
IOExceptionInterruptedExceptionsoftware.amazon.awssdk.core.exception.SdkException
-
connectToSsh
protected org.apache.sshd.client.session.ClientSession connectToSsh(org.apache.sshd.client.SshClient client, EC2Computer computer, TaskListener listener, SlaveTemplate template) throws software.amazon.awssdk.core.exception.SdkException, InterruptedException - Throws:
software.amazon.awssdk.core.exception.SdkExceptionInterruptedException
-
getEC2HostAddress
protected static String getEC2HostAddress(EC2Computer computer, SlaveTemplate template) throws software.amazon.awssdk.core.exception.SdkException, InterruptedException - Throws:
software.amazon.awssdk.core.exception.SdkExceptionInterruptedException
-
getEC2HostKeyAlgorithmFlag
- Throws:
IOException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<ComputerLauncher>- Overrides:
getDescriptorin classAbstractDescribableImpl<ComputerLauncher>
-