Class RunnableApplication
java.lang.Object
org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
- Direct Known Subclasses:
JavaApplication
,NonJavaApplication
The Class RunnableApplication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
The arg list.The environment.protected Execute
The exec.protected String
The executable.private Properties
The sys env vars. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addApplicationInfo
(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor) Sets up command line used to launch Cas Processor in a separate process.protected String
getSysEnvVarValue
(String aKey) Returns a value of a given environment variable.private void
Displays current system environment settings.
-
Field Details
-
executable
The executable. -
exec
The exec. -
environment
The environment. -
argList
The arg list. -
sysEnvVars
The sys env vars.
-
-
Constructor Details
-
RunnableApplication
public RunnableApplication()
-
-
Method Details
-
addApplicationInfo
protected void addApplicationInfo(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor) throws ResourceConfigurationException Sets up command line used to launch Cas Processor in a separate process. Combines environment variables setup in the CPE descriptor with a System environment variables.- Parameters:
aCasProcessorConfiguration
- - access to Cas Processor configurationaCasProcessor
- the a cas processor- Throws:
ResourceConfigurationException
- wraps Exception
-
printSysEnvironment
private void printSysEnvironment()Displays current system environment settings. -
getSysEnvVarValue
Returns a value of a given environment variable.- Parameters:
aKey
- - name of the environment variable- Returns:
- - value correspnding to environment variable
-