hudson.remoting
Class Launcher

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

public class Launcher
extends java.lang.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
 java.lang.String auth
           
 java.net.InetSocketAddress connectionTarget
           
 Channel.Mode mode
           
 boolean ping
           
 java.lang.String secret
           
 java.lang.String slaveJnlpCredentials
           
 java.net.URL slaveJnlpURL
           
 java.io.File slaveLog
           
 java.io.File tcpPortFile
           
static java.lang.String VERSION
          Version number of Hudson this slave.jar is from.
 
Constructor Summary
Launcher()
           
 
Method Summary
 void addClasspath(java.lang.String pathList)
           
static boolean isWindows()
           
static void main(java.io.InputStream is, java.io.OutputStream os)
           
static void main(java.io.InputStream is, java.io.OutputStream os, Channel.Mode mode)
           
static void main(java.io.InputStream is, java.io.OutputStream os, Channel.Mode mode, boolean performPing)
           
static void main(java.lang.String... args)
           
 java.util.List<java.lang.String> parseJnlpArguments()
          Parses the connection arguments from JNLP file given in the URL.
 void run()
           
 void setConnectTo(java.lang.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

slaveLog

public java.io.File slaveLog

slaveJnlpURL

public java.net.URL slaveJnlpURL

slaveJnlpCredentials

public java.lang.String slaveJnlpCredentials

secret

public java.lang.String secret

tcpPortFile

public java.io.File tcpPortFile

auth

public java.lang.String auth

connectionTarget

public java.net.InetSocketAddress connectionTarget

VERSION

public static final java.lang.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(java.lang.String pathList)
                  throws java.lang.Exception
Throws:
java.lang.Exception

setConnectTo

public void setConnectTo(java.lang.String target)

setNoCertificateCheck

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

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

main

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

run

public void run()
         throws java.lang.Exception
Throws:
java.lang.Exception

parseJnlpArguments

public java.util.List<java.lang.String> parseJnlpArguments()
                                                    throws javax.xml.parsers.ParserConfigurationException,
                                                           org.xml.sax.SAXException,
                                                           java.io.IOException,
                                                           java.lang.InterruptedException
Parses the connection arguments from JNLP file given in the URL.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.lang.InterruptedException

main

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

main

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

main

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

isWindows

public static boolean isWindows()


Copyright © 2013. All Rights Reserved.