Class NonJavaApplication
java.lang.Object
org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
org.apache.uima.collection.impl.cpm.container.deployer.NonJavaApplication
Component responsible for configuring command line for non-java based CasProcessor. Each
CasProcessor is configured via CPE descriptor either statically (xml file) or dynamically by
means of APIs. In both cases, the CasProcessor to be launched by the CPE must be properly setup
for launching. Its environment must be setup, and command line with arguments.
-
Field Summary
Fields inherited from class org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
argList, environment, exec, executable
-
Constructor Summary
ConstructorDescriptionNonJavaApplication
(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessorConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
addApplicationCmdLineArguments
(CasProcessorConfiguration aCasProcessorConfiguration, List argList, String aExecutable) Returns final command line as array of Strings.protected void
addApplicationInfo
(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor) Sets up command line used to launch Cas Processor in a seperate process.Methods inherited from class org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
getSysEnvVarValue
-
Constructor Details
-
NonJavaApplication
public NonJavaApplication(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessorConfig) throws ResourceConfigurationException - Throws:
ResourceConfigurationException
-
-
Method Details
-
addApplicationInfo
protected void addApplicationInfo(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor) throws ResourceConfigurationException Sets up command line used to launch Cas Processor in a seperate process. Combines environment variables setup in the CPE descriptor with a System environment variables.- Overrides:
addApplicationInfo
in classRunnableApplication
- Parameters:
aCasProcessorConfiguration
- - access to Cas Processor configurationaCasProcessor
- -- Throws:
ResourceConfigurationException
- passthru
-
addApplicationCmdLineArguments
protected String[] addApplicationCmdLineArguments(CasProcessorConfiguration aCasProcessorConfiguration, List argList, String aExecutable) throws ResourceConfigurationException Returns final command line as array of Strings.- Parameters:
aCasProcessorConfiguration
- - Cas Processor configurationargList
- - arguments configured for the CasProcessor in cpe descriptoraExecutable
- - name of the program to launch- Returns:
- - command line as array of Strings
- Throws:
ResourceConfigurationException
- -
-
getExecSpec
- Returns:
- the executable part
-