hudson.slaves
Class ComputerConnector
java.lang.Object
hudson.model.AbstractDescribableImpl<ComputerConnector>
hudson.slaves.ComputerConnector
- All Implemented Interfaces:
- ExtensionPoint, Describable<ComputerConnector>
- Direct Known Subclasses:
- CommandConnector
public abstract class ComputerConnector
- extends AbstractDescribableImpl<ComputerConnector>
- implements ExtensionPoint
Factory of ComputerLauncher.
When writing a Cloud implementation, one needs to dynamically create
ComputerLauncher by supplying a host name. This is the abstraction
for that.
- Since:
- 1.383
- Author:
- Kohsuke Kawaguchi
- See Also:
ComputerLauncher
ComputerConnector
public ComputerConnector()
launch
public abstract ComputerLauncher launch(String host,
TaskListener listener)
throws IOException,
InterruptedException
- Creates a
ComputerLauncher for connecting to the given host.
- Parameters:
host - The host name / IP address of the machine to connect to.listener - If
- Throws:
IOException
InterruptedException
getDescriptor
public ComputerConnectorDescriptor getDescriptor()
- Description copied from interface:
Describable
- Gets the descriptor for this instance.
Descriptor is a singleton for every concrete
Describable implementation, so if
a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
- Specified by:
getDescriptor in interface Describable<ComputerConnector>- Overrides:
getDescriptor in class AbstractDescribableImpl<ComputerConnector>
Copyright © 2004-2013 Hudson. All Rights Reserved.