public interface IServiceBuilder
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
arguments()
Returns the arguments to be passed to the native process.
|
IServiceBuilder |
arguments(java.lang.String[] args)
Sets the arguments to be passed to the native process.
|
java.lang.String |
command()
Returns the native executable to launch.
|
IServiceBuilder |
command(java.io.File command)
Sets the native executable to launch.
|
IServiceBuilder |
command(java.lang.String command)
Sets the native executable to launch.
|
int |
connectionsPerProcess()
Returns the number of connections established per process.
|
IServiceBuilder |
connectionsPerProcess(int connectionsPerProcess)
Sets the number of connections established per process.
|
INativeService |
create()
Creates and returns an INativeService object.
|
int |
debugPort()
Returns TCP port to listen on for debug connection.
|
IServiceBuilder |
debugPort(int port)
Sets the TCP port to listen on for debug connection.
|
java.io.File |
directory()
Returns the working directory of the native process.
|
IServiceBuilder |
directory(java.io.File directory)
Sets the working directory of the native process.
|
java.util.Map<java.lang.String,java.lang.String> |
environment()
Returns a rereference to this ServiceBuilders environment map.
|
java.lang.String |
id()
Returns the unique id of the NativeService.
|
IServiceBuilder |
id(java.lang.String id)
Sets the unique id of the NativeService.
|
int |
launchTimeout()
Maximum time to wait for a spawned child process' connection.
|
IServiceBuilder |
launchTimeout(int timeout)
Sets the maximum time to wait for a spawned child process' connection.
|
java.lang.String |
library()
Returns the path of the NativeService library to load.
|
IServiceBuilder |
library(java.io.File library)
Sets the path of the NativeService library to load.
|
IServiceBuilder |
library(java.lang.String library)
Sets the path of the NativeService library to load.
|
java.io.File |
logDir()
Returns the service log directory.
|
IServiceBuilder |
logDir(java.io.File logdir)
Sets the service log directory.
|
java.lang.String |
loggerName()
Returns the Logger name (i.e.
|
IServiceBuilder |
loggerName(java.lang.String loggerName)
Logger name (i.e.
|
int |
maxConnections()
Returns the maximum connection pool size
|
IServiceBuilder |
maxConnections(int maxConnections)
Sets the maximum connection pool size
|
int |
maxRequests()
Returns the maximum number of requests per process.
|
IServiceBuilder |
maxRequests(int maxRequests)
Sets the maximum number of requests per process.
|
IProcessLauncherHook |
processLauncherHook()
Returns the
IProcessLauncherHook . |
IServiceBuilder |
processLauncherHook(IProcessLauncherHook hook)
Set the
IProcessLauncherHook instance or null. |
int |
terminationTimeout()
Maximum time to wait for a spawned child process' graceful termination.
|
IServiceBuilder |
terminationTimeout(int timeout)
Sets the maximum time to wait for a spawned child process' graceful
termination.
|
java.io.File |
tmpDir()
Returns the service temp directory.
|
IServiceBuilder |
tmpDir(java.io.File tmpDir)
Sets the service temp directory.
|
INativeService create() throws NativeCommException
NativeCommException
- on failurejava.lang.String id()
IServiceBuilder id(java.lang.String id)
id
- unique id to setint maxConnections()
IServiceBuilder maxConnections(int maxConnections)
maxConnections
- maximum connection pool sizeint maxRequests()
IServiceBuilder maxRequests(int maxRequests)
maxRequests
- maximum number of requests per process (0 == unlimited)java.lang.String[] arguments()
IServiceBuilder arguments(java.lang.String[] args)
args
- to be passed to the native processjava.util.Map<java.lang.String,java.lang.String> environment()
java.lang.String library()
IServiceBuilder library(java.lang.String library)
library
- path of the NativeService library to loadIServiceBuilder library(java.io.File library)
library
- path of the NativeService library to loadjava.io.File directory()
IServiceBuilder directory(java.io.File directory)
directory
- working directory of the native process; if null, the parent
directory of the library is usedjava.lang.String command()
IServiceBuilder command(java.lang.String command)
command
- native executable to launch; if null, the default NativeComm
host is usedIServiceBuilder command(java.io.File command)
command
- native executable to launch; if null, the default NativeComm
host is usedint connectionsPerProcess()
IServiceBuilder connectionsPerProcess(int connectionsPerProcess)
connectionsPerProcess
- number of connections established per processjava.io.File logDir()
IServiceBuilder logDir(java.io.File logdir)
logdir
- the service log directory; if null the working directory is usedjava.io.File tmpDir()
IServiceBuilder tmpDir(java.io.File tmpDir)
tmpDir
- the service temp directory; if null the default temp path is inheritedint launchTimeout()
IServiceBuilder launchTimeout(int timeout)
timeout
- maximum time to wait for a spawned child process' connection.launchTimeout()
int terminationTimeout()
IServiceBuilder terminationTimeout(int timeout)
timeout
- maximum time to wait for a spawned child process' graceful termination.terminationTimeout()
int debugPort()
IServiceBuilder debugPort(int port)
port
- TCP port to listen on for debug connection; 0 if not debuggingIServiceBuilder loggerName(java.lang.String loggerName)
loggerName
- - logger name (i.e. class name of NComm service user).java.lang.String loggerName()
IProcessLauncherHook processLauncherHook()
IProcessLauncherHook
.IProcessLauncherHook
.IServiceBuilder processLauncherHook(IProcessLauncherHook hook)
IProcessLauncherHook
instance or null.hook
- - IProcessLauncherHook
instance or null."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"