Class RunnableApplication
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
-
- Direct Known Subclasses:
JavaApplication
,NonJavaApplication
public class RunnableApplication extends java.lang.Object
The Class RunnableApplication.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List
argList
The arg list.protected java.util.ArrayList<java.lang.String>
environment
The environment.protected Execute
exec
The exec.protected java.lang.String
executable
The executable.private java.util.Properties
sysEnvVars
The sys env vars.
-
Constructor Summary
Constructors Constructor Description RunnableApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addApplicationInfo(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor)
Sets up command line used to launch Cas Processor in a separate process.protected java.lang.String
getSysEnvVarValue(java.lang.String aKey)
Returns a value of a given environment variable.private void
printSysEnvironment()
Displays current system environment settings.
-
-
-
Field Detail
-
executable
protected java.lang.String executable
The executable.
-
exec
protected Execute exec
The exec.
-
environment
protected java.util.ArrayList<java.lang.String> environment
The environment.
-
argList
protected java.util.List argList
The arg list.
-
sysEnvVars
private java.util.Properties sysEnvVars
The sys env vars.
-
-
Method Detail
-
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
protected java.lang.String getSysEnvVarValue(java.lang.String aKey)
Returns a value of a given environment variable.- Parameters:
aKey
- - name of the environment variable- Returns:
- - value correspnding to environment variable
-
-