hudson.remoting
Class Launcher

java.lang.Object
  extended by hudson.remoting.Launcher

public class Launcher
extends Object

Entry point for running a Channel. This is the main method of the slave JVM.

This class also defines several methods for starting a channel on a fresh JVM.

Author:
Kohsuke Kawaguchi

Field Summary
 String auth
           
 InetSocketAddress connectionTarget
           
 Channel.Mode mode
           
 boolean ping
           
 String slaveJnlpCredentials
           
 URL slaveJnlpURL
           
 File tcpPortFile
           
static String VERSION
          Version number of Hudson this slave.jar is from.
 
Constructor Summary
Launcher()
           
 
Method Summary
 void addClasspath(String pathList)
           
static boolean isWindows()
           
static void main(InputStream is, OutputStream os)
           
static void main(InputStream is, OutputStream os, Channel.Mode mode)
           
static void main(InputStream is, OutputStream os, Channel.Mode mode, boolean performPing)
           
static void main(String... args)
           
 List<String> parseJnlpArguments()
          Parses the connection arguments from JNLP file given in the URL.
 void run()
           
 void setConnectTo(String target)
           
 void setNoCertificateCheck(boolean _)
          Bypass HTTPS security check by using free-for-all trust manager.
 void setTextMode(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

public Channel.Mode mode

ping

public boolean ping

slaveJnlpURL

public URL slaveJnlpURL

slaveJnlpCredentials

public String slaveJnlpCredentials

tcpPortFile

public File tcpPortFile

auth

public String auth

connectionTarget

public InetSocketAddress connectionTarget

VERSION

public static final String VERSION
Version number of Hudson this slave.jar is from.

Constructor Detail

Launcher

public Launcher()
Method Detail

setTextMode

public void setTextMode(boolean b)

addClasspath

public void addClasspath(String pathList)
                  throws Exception
Throws:
Exception

setConnectTo

public void setConnectTo(String target)

setNoCertificateCheck

public void setNoCertificateCheck(boolean _)
                           throws NoSuchAlgorithmException,
                                  KeyManagementException
Bypass HTTPS security check by using free-for-all trust manager.

Parameters:
_ - This is ignored.
Throws:
NoSuchAlgorithmException
KeyManagementException

main

public static void main(String... args)
                 throws Exception
Throws:
Exception

run

public void run()
         throws Exception
Throws:
Exception

parseJnlpArguments

public List<String> parseJnlpArguments()
                                throws ParserConfigurationException,
                                       SAXException,
                                       IOException,
                                       InterruptedException
Parses the connection arguments from JNLP file given in the URL.

Throws:
ParserConfigurationException
SAXException
IOException
InterruptedException

main

public static void main(InputStream is,
                        OutputStream os)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

main

public static void main(InputStream is,
                        OutputStream os,
                        Channel.Mode mode)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

main

public static void main(InputStream is,
                        OutputStream os,
                        Channel.Mode mode,
                        boolean performPing)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

isWindows

public static boolean isWindows()


Copyright © 2004-2011. All Rights Reserved.