jenkins.plugins.nodejs.tools
Class DecoratedLauncher

java.lang.Object
  extended by hudson.Launcher
      extended by jenkins.plugins.nodejs.tools.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 (from custom tools plugin)

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
 hudson.model.Computer getComputer()
           
 hudson.model.TaskListener getListener()
           
 boolean isUnix()
           
 void kill(Map<String,String> modelEnvVars)
           
 hudson.Proc launch(hudson.Launcher.ProcStarter starter)
           
 hudson.Proc launch(String[] cmd, boolean[] mask, String[] env, InputStream in, OutputStream out, hudson.FilePath workDir)
           
 hudson.remoting.Channel launchChannel(String[] cmd, OutputStream out, hudson.FilePath workDir, Map<String,String> envVars)
           
 String toString()
           
 
Methods inherited from class hudson.Launcher
decorateByEnv, decorateByPrefix, decorateFor, getChannel, 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, wait, wait, wait
 

Constructor Detail

DecoratedLauncher

public DecoratedLauncher(hudson.Launcher inner)
Method Detail

launch

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

launchChannel

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

kill

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

isUnix

public boolean isUnix()
Overrides:
isUnix in class hudson.Launcher

launch

public hudson.Proc launch(String[] cmd,
                          boolean[] mask,
                          String[] env,
                          InputStream in,
                          OutputStream out,
                          hudson.FilePath workDir)
                   throws IOException
Overrides:
launch in class hudson.Launcher
Throws:
IOException

getComputer

public hudson.model.Computer getComputer()
Overrides:
getComputer in class hudson.Launcher

getListener

public hudson.model.TaskListener getListener()
Overrides:
getListener in class hudson.Launcher

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2013. All Rights Reserved.