public abstract class ComputerConnector extends AbstractDescribableImpl<ComputerConnector> implements ExtensionPoint
ComputerLauncher.
When writing a Cloud implementation, one needs to dynamically create ComputerLauncher
by supplying a host name. This is the abstraction for that.ComputerLauncherExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
ComputerConnector() |
| Modifier and Type | Method and Description |
|---|---|
ComputerConnectorDescriptor |
getDescriptor()
By default looks for a nested class (conventionally named
DescriptorImpl) implementing Descriptor and marked with Extension. |
abstract ComputerLauncher |
launch(String host,
TaskListener listener)
Creates a
ComputerLauncher for connecting to the given host. |
public abstract ComputerLauncher launch(@Nonnull String host, TaskListener listener) throws IOException, InterruptedException
ComputerLauncher for connecting to the given host.host - The host name / IP address of the machine to connect to.listener - IfIOExceptionInterruptedExceptionpublic ComputerConnectorDescriptor getDescriptor()
AbstractDescribableImplDescriptorImpl) implementing Descriptor and marked with Extension.
Gets the descriptor for this instance.
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass() then by default
a.getDescriptor() == b.getDescriptor() as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor in interface Describable<ComputerConnector>getDescriptor in class AbstractDescribableImpl<ComputerConnector>Copyright © 2019. All rights reserved.