hudson.slaves
Class CommandConnector

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<ComputerConnector>
      extended by hudson.slaves.ComputerConnector
          extended by hudson.slaves.CommandConnector
All Implemented Interfaces:
ExtensionPoint, Describable<ComputerConnector>

public class CommandConnector
extends ComputerConnector

Executes a program on the master and expect that script to connect.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class CommandConnector.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String command
           
 
Constructor Summary
CommandConnector(String command)
           
 
Method Summary
 CommandLauncher launch(String host, TaskListener listener)
          Creates a ComputerLauncher for connecting to the given host.
 
Methods inherited from class hudson.slaves.ComputerConnector
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

public final String command
Constructor Detail

CommandConnector

@DataBoundConstructor
public CommandConnector(String command)
Method Detail

launch

public CommandLauncher launch(String host,
                              TaskListener listener)
                       throws IOException,
                              InterruptedException
Description copied from class: ComputerConnector
Creates a ComputerLauncher for connecting to the given host.

Specified by:
launch in class ComputerConnector
Parameters:
host - The host name / IP address of the machine to connect to.
listener - If
Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.