Package com.adobe.versioncue.nativecomm
Class NativeComm
- java.lang.Object
-
- com.adobe.versioncue.nativecomm.NativeComm
-
public final class NativeComm extends java.lang.Object
- Since:
- Mar 8, 2006
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NativeComm.OS
Host operating system enum
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getDefaultCommand()
Returns the configured default executablestatic int
getDefaultLaunchTimeout()
static java.io.File
getDefaultLogDir()
Returns the configured default log directorystatic int
getDefaultMaxConnections()
Returns the default maximum connection pool sizestatic 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 directorystatic INativeService
service(java.lang.String id, int port)
HACKY WHACKY - quick way to connect a running service on a portstatic IServiceBuilder
serviceBuilder(java.lang.String id)
static void
setDefaultCommand(java.lang.String command)
Sets the default executablestatic 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 directorystatic void
setDefaultMaxConnections(int maxConnections)
Sets the default maximum connection pool sizestatic 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 retriesstatic void
setDefaultRequestTimeout(int timeout)
Sets the default request timeout in millisecondsstatic void
setDefaultTmpDir(java.io.File tmpDir)
Sets the default temp directory
-
-
-
Method Detail
-
serviceBuilder
public static IServiceBuilder serviceBuilder(java.lang.String id)
- Parameters:
id
- unique service id- Returns:
- IServiceBuilder object
-
service
public static INativeService service(java.lang.String id, int port)
HACKY WHACKY - quick way to connect a running service on a port- Parameters:
id
- - arbitrary idport
- - TCP port to connect- Returns:
- INativeService instance
-
getDefaultCommand
public static java.lang.String getDefaultCommand()
Returns the configured default executable- Returns:
- the configured default executable
-
getDefaultTmpDir
public static java.io.File getDefaultTmpDir()
Returns the configured default temp directory- Returns:
- the configured default temp directory
-
getDefaultLogDir
public static java.io.File getDefaultLogDir()
Returns the configured default log directory- Returns:
- the configured default log directory
-
getDefaultMaxConnections
public static int getDefaultMaxConnections()
Returns the default maximum connection pool size- Returns:
- the default maximum connection pool size
-
getDefaultMaxRequests
public static int getDefaultMaxRequests()
Returns the default maximum number of requests per process.- Returns:
- the default maximum number of requests per process (0 == unlimited)
-
getDefaultRequestTimeout
public static int getDefaultRequestTimeout()
Returns the default request timeout in milliseconds.- Returns:
- the default request timeout in milliseconds
-
getDefaultRequestRetries
public static int getDefaultRequestRetries()
- Returns:
- default maximum number of request retries; 0 == do not retry
-
getDefaultLaunchTimeout
public static int getDefaultLaunchTimeout()
- Returns:
- the default maximum time to wait for a spawned child process' connection.
-
setDefaultCommand
public static void setDefaultCommand(java.lang.String command)
Sets the default executable- Parameters:
command
- default executable
-
setDefaultTmpDir
public static void setDefaultTmpDir(java.io.File tmpDir)
Sets the default temp directory- Parameters:
tmpDir
- default temp directory
-
setDefaultLogDir
public static void setDefaultLogDir(java.io.File logDir)
Sets the default log directory- Parameters:
logDir
- default log directory
-
setDefaultMaxConnections
public static void setDefaultMaxConnections(int maxConnections)
Sets the default maximum connection pool size- Parameters:
maxConnections
- default maximum connection pool size
-
setDefaultMaxRequests
public static void setDefaultMaxRequests(int maxRequests)
Sets the default maximum number of requests per process.- Parameters:
maxRequests
- default maximum number of requests per process (0 == unlimited)
-
setDefaultRequestTimeout
public static void setDefaultRequestTimeout(int timeout)
Sets the default request timeout in milliseconds- Parameters:
timeout
- default request timeout in milliseconds; 0 == no timeout
-
setDefaultRequestRetries
public static void setDefaultRequestRetries(int retries)
Sets the default maximum number of request retries- Parameters:
retries
- default maximum number of request retries; 0 == do not retry
-
setDefaultLaunchTimeout
public static void setDefaultLaunchTimeout(int timeout)
Sets the default maximum time to wait for a spawned child process' connection.- Parameters:
timeout
- default maximum time to wait for a spawned child process' connection.
-
-