public final class NativeComm
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NativeComm.OS
Host operating system enum
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDefaultCommand()
Returns the configured default executable
|
static int |
getDefaultLaunchTimeout() |
static java.io.File |
getDefaultLogDir()
Returns the configured default log directory
|
static int |
getDefaultMaxConnections()
Returns the default maximum connection pool size
|
static int |
getDefaultMaxRequests()
Returns the default maximum number of requests per process.
|
static int |
getDefaultRequestRetries() |
static int |
getDefaultRequestTimeout()
Returns the default request timeout in milliseconds.
|
static java.io.File |
getDefaultTmpDir()
Returns the configured default temp directory
|
static INativeService |
service(java.lang.String id,
int port)
HACKY WHACKY - quick way to connect a running service on a port
|
static IServiceBuilder |
serviceBuilder(java.lang.String id) |
static void |
setDefaultCommand(java.lang.String command)
Sets the default executable
|
static void |
setDefaultLaunchTimeout(int timeout)
Sets the default maximum time to wait for a spawned child process' connection.
|
static void |
setDefaultLogDir(java.io.File logDir)
Sets the default log directory
|
static void |
setDefaultMaxConnections(int maxConnections)
Sets the default maximum connection pool size
|
static void |
setDefaultMaxRequests(int maxRequests)
Sets the default maximum number of requests per process.
|
static void |
setDefaultRequestRetries(int retries)
Sets the default maximum number of request retries
|
static void |
setDefaultRequestTimeout(int timeout)
Sets the default request timeout in milliseconds
|
static void |
setDefaultTmpDir(java.io.File tmpDir)
Sets the default temp directory
|
public static IServiceBuilder serviceBuilder(java.lang.String id)
id
- unique service idpublic static INativeService service(java.lang.String id, int port)
id
- - arbitrary idport
- - TCP port to connectpublic static java.lang.String getDefaultCommand()
public static java.io.File getDefaultTmpDir()
public static java.io.File getDefaultLogDir()
public static int getDefaultMaxConnections()
public static int getDefaultMaxRequests()
public static int getDefaultRequestTimeout()
public static int getDefaultRequestRetries()
public static int getDefaultLaunchTimeout()
public static void setDefaultCommand(java.lang.String command)
command
- default executablepublic static void setDefaultTmpDir(java.io.File tmpDir)
tmpDir
- default temp directorypublic static void setDefaultLogDir(java.io.File logDir)
logDir
- default log directorypublic static void setDefaultMaxConnections(int maxConnections)
maxConnections
- default maximum connection pool sizepublic static void setDefaultMaxRequests(int maxRequests)
maxRequests
- default maximum number of requests per process (0 == unlimited)public static void setDefaultRequestTimeout(int timeout)
timeout
- default request timeout in milliseconds; 0 == no timeoutpublic static void setDefaultRequestRetries(int retries)
retries
- default maximum number of request retries; 0 == do not retrypublic static void setDefaultLaunchTimeout(int timeout)
timeout
- default maximum time to wait for a spawned child process' connection."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"