Interface CpeLocalCasProcessor
-
- All Superinterfaces:
java.lang.Cloneable,CpeCasProcessor,MetaDataObject,java.io.Serializable,XMLizable
- All Known Implementing Classes:
CpeLocalCasProcessorImpl
public interface CpeLocalCasProcessor extends CpeCasProcessor
An object that holds configuration that is part of the CPE descriptor. Provides the means of defining and obtaining configuration for CasProcessors deployed locally, ie same machine as CPE but different process.Its basic functionality is inherited from
CpeCasProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddExecArg(java.lang.String aArgValue)voidaddExecEnv(java.lang.String aEnvParamName, java.lang.String aEnvParamValue)java.lang.StringgetExecutable()Returns a name of a program to use when launching this CasProcessorCasProcessorRunInSeperateProcessgetRunInSeperateProcess()booleanisJava()Returns true if the local Cas Processor is a java programvoidsetExecutable(java.lang.String aCasProcessorExecutable)Defines the name of a program to run when launching this Cas Processor.voidsetIsJava(boolean aJava)Defines if this Cas Processor is a java programvoidsetRunInSeperateProcess(CasProcessorRunInSeperateProcess aSepProcess)-
Methods inherited from interface org.apache.uima.collection.metadata.CpeCasProcessor
addDeployParam, getActionOnMaxError, getActionOnMaxRestart, getBatchSize, getCasProcessorFilter, getCheckpoint, getConfigurationParameterSettings, getCpeComponentDescriptor, getDeployment, getDeploymentParams, getDescriptor, getErrorHandling, getIsParallelizable, getMaxErrorCount, getMaxErrorSampleSize, getMaxRestartCount, getName, getRunInSeparateProcess, getSOFA, getSofaNameMappings, getTimeout, setActionOnMaxError, setActionOnMaxRestart, setBatchSize, setCasProcessorFilter, setConfigurationParameterSettings, setCpeComponentDescriptor, setDescriptor, setIsParallelizable, setMaxErrorCount, setMaxErrorSampleSize, setMaxRestartCount, setName, setSOFA, setSofaNameMappings, setTimeout
-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
-
-
-
Method Detail
-
isJava
boolean isJava() throws CpeDescriptorExceptionReturns true if the local Cas Processor is a java program- Returns:
- true if java program, false otherwise
- Throws:
CpeDescriptorException- -
-
setIsJava
void setIsJava(boolean aJava) throws CpeDescriptorExceptionDefines if this Cas Processor is a java program- Parameters:
aJava- - true if java, false otherwise- Throws:
CpeDescriptorException- -
-
setExecutable
void setExecutable(java.lang.String aCasProcessorExecutable) throws CpeDescriptorExceptionDefines the name of a program to run when launching this Cas Processor. A program can be a java exec, a shell script, or any program that can run in a separate process.- Parameters:
aCasProcessorExecutable- - name of a program- Throws:
CpeDescriptorException- tbd
-
getExecutable
java.lang.String getExecutable() throws CpeDescriptorExceptionReturns a name of a program to use when launching this CasProcessor- Returns:
- the name of the program to execute
- Throws:
CpeDescriptorException- tbd
-
addExecEnv
void addExecEnv(java.lang.String aEnvParamName, java.lang.String aEnvParamValue) throws CpeDescriptorException- Throws:
CpeDescriptorException
-
addExecArg
void addExecArg(java.lang.String aArgValue) throws CpeDescriptorException- Throws:
CpeDescriptorException
-
setRunInSeperateProcess
void setRunInSeperateProcess(CasProcessorRunInSeperateProcess aSepProcess) throws CpeDescriptorException
- Throws:
CpeDescriptorException
-
getRunInSeperateProcess
CasProcessorRunInSeperateProcess getRunInSeperateProcess() throws CpeDescriptorException
- Throws:
CpeDescriptorException
-
-