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

java.lang.Object
  extended by org.apache.uima.collection.impl.cpm.container.deployer.RunnableApplication
Direct Known Subclasses:
JavaApplication, NonJavaApplication

public class RunnableApplication
extends java.lang.Object


Field Summary
protected  java.util.List argList
           
protected  java.util.ArrayList<java.lang.String> environment
           
protected  Execute exec
           
protected  java.lang.String executable
           
 
Constructor Summary
RunnableApplication()
           
 
Method Summary
protected  void addApplicationInfo(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor)
          Sets up command line used to launch Cas Processor in a seperate process.
protected  java.lang.String getSysEnvVarValue(java.lang.String aKey)
          Returns a value of a given environment variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executable

protected java.lang.String executable

exec

protected Execute exec

environment

protected java.util.ArrayList<java.lang.String> environment

argList

protected java.util.List argList
Constructor Detail

RunnableApplication

public RunnableApplication()
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.

Parameters:
aCasProcessorConfiguration - - access to Cas Processor configuration
aJaxbCasProcessorConfig -
Throws:
ResourceConfigurationException

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


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.