public class JCloudsLauncher extends ComputerLauncher
ExtensionPoint.LegacyInstancesAreScopedToHudson
LIST
Constructor and Description |
---|
JCloudsLauncher() |
Modifier and Type | Method and Description |
---|---|
static String |
getConnectionAddress(NodeMetadata nodeMetadata,
PrintStream logger,
String preferredAddress)
Get the potential address to connect to, opting for public first and then private.
|
Descriptor<ComputerLauncher> |
getDescriptor() |
void |
launch(SlaveComputer computer,
TaskListener listener)
Launch the Jenkins Slave on the SlaveComputer.
|
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
public void launch(SlaveComputer computer, TaskListener listener) throws IOException, InterruptedException
launch
in class ComputerLauncher
computer
- The node on which to launch the slave.listener
- Task listener for notification purposes.IOException
- if an error occurs.InterruptedException
- if the launch gets interrupted.public static String getConnectionAddress(NodeMetadata nodeMetadata, PrintStream logger, String preferredAddress)
nodeMetadata
- The meta data of the configured node.logger
- Reference to a PrintStream for logging purposes.preferredAddress
- An optional String, containing an address/prefix expression which will be used for matching.public Descriptor<ComputerLauncher> getDescriptor()
getDescriptor
in interface Describable<ComputerLauncher>
getDescriptor
in class AbstractDescribableImpl<ComputerLauncher>
Copyright © 2016–2021. All rights reserved.