com.cloudbees.jenkins.plugins.customtools
Class DecoratedLauncher

java.lang.Object
  extended by hudson.Launcher
      extended by com.cloudbees.jenkins.plugins.customtools.DecoratedLauncher

public class DecoratedLauncher
extends hudson.Launcher

A launcher which delegates to a provided inner launcher. Allows subclasses to only implement methods they want to override.

Author:
rcampbell

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Launcher
hudson.Launcher.IOTriplet, hudson.Launcher.LocalLauncher, hudson.Launcher.ProcStarter, hudson.Launcher.RemoteLauncher, hudson.Launcher.RemoteProcess
 
Field Summary
 
Fields inherited from class hudson.Launcher
channel, listener, showFullPath
 
Constructor Summary
DecoratedLauncher(hudson.Launcher inner)
           
 
Method Summary
 void kill(java.util.Map<java.lang.String,java.lang.String> modelEnvVars)
           
 hudson.Proc launch(hudson.Launcher.ProcStarter starter)
           
 hudson.remoting.Channel launchChannel(java.lang.String[] cmd, java.io.OutputStream out, hudson.FilePath workDir, java.util.Map<java.lang.String,java.lang.String> envVars)
           
 
Methods inherited from class hudson.Launcher
decorateByPrefix, decorateFor, getChannel, getComputer, getListener, isUnix, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, printCommandLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedLauncher

public DecoratedLauncher(hudson.Launcher inner)
Method Detail

launch

public hudson.Proc launch(hudson.Launcher.ProcStarter starter)
                   throws java.io.IOException
Specified by:
launch in class hudson.Launcher
Throws:
java.io.IOException

launchChannel

public hudson.remoting.Channel launchChannel(java.lang.String[] cmd,
                                             java.io.OutputStream out,
                                             hudson.FilePath workDir,
                                             java.util.Map<java.lang.String,java.lang.String> envVars)
                                      throws java.io.IOException,
                                             java.lang.InterruptedException
Specified by:
launchChannel in class hudson.Launcher
Throws:
java.io.IOException
java.lang.InterruptedException

kill

public void kill(java.util.Map<java.lang.String,java.lang.String> modelEnvVars)
          throws java.io.IOException,
                 java.lang.InterruptedException
Specified by:
kill in class hudson.Launcher
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2004-2012. All Rights Reserved.