Modifier and Type | Field and Description |
---|---|
String |
agentJnlpCredentials |
URL |
agentJnlpURL |
File |
agentLog
Specifies a destination for error logs.
|
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 |
boolean |
showHelp
Shows help message and then exits
|
boolean |
showVersion
Shows version information and then exits
|
File |
tcpPortFile |
static String |
VERSION
Version number of Hudson this agent.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 String |
getCommunicationProtocolName()
Get the name of the communication protocol used in the Launcher.
|
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 agentLog
public URL agentJnlpURL
public String agentJnlpCredentials
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.
public boolean failIfWorkDirIsMissing
public boolean showHelp
public boolean showVersion
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.NoSuchAlgorithmException
KeyManagementException
public List<String> parseJnlpArguments() throws ParserConfigurationException, SAXException, IOException, InterruptedException
public static void main(InputStream is, OutputStream os) throws IOException, InterruptedException
IOException
InterruptedException
public static void main(InputStream is, OutputStream os, Channel.Mode mode) throws IOException, InterruptedException
IOException
InterruptedException
@Deprecated public static void main(InputStream is, OutputStream os, Channel.Mode mode, boolean performPing) throws IOException, InterruptedException
#main(InputStream, OutputStream, Mode, boolean, JarCache)
IOException
InterruptedException
public 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.IOException
InterruptedException
public static boolean isWindows()
public static String getCommunicationProtocolName()
Engine.getProtocolName()
instead.Copyright © 2004–2022. All rights reserved.