| Modifier and Type | Field and Description |
|---|---|
String |
auth |
List<String> |
candidateCertificates |
InetSocketAddress |
connectionTarget |
boolean |
failIfWorkDirIsMissing
Fail the initialization if the workDir or internalDir are missing.
|
String |
internalDir
Specifies a directory within
workDir, which stores all the remoting-internal files. |
File |
jarCache |
File |
loggingConfigFilePath
Specified location of the property file with JUL settings.
|
Channel.Mode |
mode |
boolean |
noKeepAlive |
boolean |
noReconnect |
boolean |
ping |
String |
proxyCredentials |
String |
secret |
String |
slaveJnlpCredentials |
URL |
slaveJnlpURL |
File |
slaveLog
Specifies a destination for error logs.
|
File |
tcpPortFile |
static String |
VERSION
Version number of Hudson this slave.jar is from.
|
File |
workDir
Specifies a default working directory of the remoting instance.
|
| Constructor and Description |
|---|
Launcher() |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
Use
#main(InputStream, OutputStream, Mode, boolean, JarCache) |
static void |
main(InputStream is,
OutputStream os,
Channel.Mode mode,
boolean performPing,
JarCache cache) |
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 ignored)
Bypass HTTPS security check by using free-for-all trust manager.
|
void |
setTextMode(boolean b) |
public Channel.Mode mode
public boolean ping
@CheckForNull public File slaveLog
public URL slaveJnlpURL
public String slaveJnlpCredentials
public String secret
public String proxyCredentials
public File tcpPortFile
public String auth
@CheckForNull public File jarCache
@CheckForNull public File loggingConfigFilePath
public InetSocketAddress connectionTarget
public boolean noReconnect
public boolean noKeepAlive
@CheckForNull public File workDir
In order to retain compatibility, the option is disabled by default.
Jenkins specifics: This working directory is expected to be equal to the agent root specified in Jenkins configuration.
@Nonnull public String internalDir
workDir, which stores all the remoting-internal files.
This option is not expected to be used frequently, but it allows remoting users to specify a custom
storage directory if the default remoting directory is consumed by other stuff.
@Nonnull public boolean failIfWorkDirIsMissing
public static final String VERSION
public void setTextMode(boolean b)
public void setConnectTo(String target)
public void setNoCertificateCheck(boolean ignored)
throws NoSuchAlgorithmException,
KeyManagementException
ignored - This is ignored.NoSuchAlgorithmExceptionKeyManagementExceptionpublic List<String> parseJnlpArguments() throws ParserConfigurationException, SAXException, IOException, InterruptedException
public static void main(InputStream is, OutputStream os) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void main(InputStream is, OutputStream os, Channel.Mode mode) throws IOException, InterruptedException
IOExceptionInterruptedException@Deprecated public static void main(InputStream is, OutputStream os, Channel.Mode mode, boolean performPing) throws IOException, InterruptedException
#main(InputStream, OutputStream, Mode, boolean, JarCache)IOExceptionInterruptedExceptionpublic static void main(InputStream is, OutputStream os, Channel.Mode mode, boolean performPing, @CheckForNull JarCache cache) throws IOException, InterruptedException
cache - JAR cache to be used.
If null, a default value will be used.IOExceptionInterruptedExceptionpublic static boolean isWindows()
Copyright © 2004–2017. All rights reserved.