org.apache.uima.collection.impl.cpm.container.deployer
Class JavaApplication

java.lang.Object
  extended by org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
      extended by org.apache.uima.collection.impl.cpm.container.deployer.JavaApplication

public class JavaApplication
extends RunnableApplication

Component responsible for configuring command line for java based CasProcessor. Each CasProcessor is configured via CPE descriptor either statically (xml file) or dynamically by means of APIs. In both cases, the java-based CasProcessor to be launched by the CPE must be properly setup for launching. Its environment must be setup, command line, and any jvm arguments.


Field Summary
 
Fields inherited from class org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
argList, environment, exec, executable
 
Constructor Summary
JavaApplication(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aJaxbCasProcessorConfig)
          Creates an instance of component responsible for configuring java based CasProcessor.
 
Method Summary
protected  java.lang.String[] addApplicationCmdLineArguments(CasProcessorConfiguration aCasProcessorConfiguration, java.util.List argList, java.lang.String aExecutable)
          Adds to command line any program arguments configured for this Cas Processor in the CPE descriptor
protected  void addApplicationInfo(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor)
          Sets up command line used to launch Cas Processor in a seperate process.
 Execute getExecSpec()
          Returns exceutable section of the CPE Descriptor for
 
Methods inherited from class org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
getSysEnvVarValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaApplication

public JavaApplication(CasProcessorConfiguration aCasProcessorConfiguration,
                       CpeCasProcessor aJaxbCasProcessorConfig)
                throws ResourceConfigurationException
Creates an instance of component responsible for configuring java based CasProcessor.

Parameters:
aCasProcessorConfiguration - - configuration for CasProcessor
aJaxbCasProcessorConfig -
Throws:
ResourceConfigurationException
Method Detail

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 class RunnableApplication
Parameters:
aCasProcessorConfiguration - - access to Cas Processor configuration
aJaxbCasProcessorConfig -
Throws:
ResourceConfigurationException

addApplicationCmdLineArguments

protected java.lang.String[] addApplicationCmdLineArguments(CasProcessorConfiguration aCasProcessorConfiguration,
                                                            java.util.List argList,
                                                            java.lang.String aExecutable)
                                                     throws ResourceConfigurationException
Adds to command line any program arguments configured for this Cas Processor in the CPE descriptor

Parameters:
aCasProcessorConfiguration - - Cas Processor configuration
argList - - list of arguments set up in the CPE descriptor
aExecutable - - executable program
Returns:
- complete command line ready for use
Throws:
ResourceConfigurationException

getExecSpec

public Execute getExecSpec()
Returns exceutable section of the CPE Descriptor for

Returns:


Copyright © 2012. All Rights Reserved.