hudson.slaves
Class ComputerConnector

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<ComputerConnector>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ComputerConnector()
           
 
Method Summary
 ComputerConnectorDescriptor getDescriptor()
          Gets the descriptor for this instance.
abstract  ComputerLauncher launch(String host, TaskListener listener)
          Creates a ComputerLauncher for connecting to the given host.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputerConnector

public ComputerConnector()
Method Detail

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.