Interface CasProcessorExecutable
-
- All Superinterfaces:
java.lang.Cloneable,MetaDataObject,java.io.Serializable,XMLizable
- All Known Implementing Classes:
CasProcessorExecutableImpl
public interface CasProcessorExecutable extends MetaDataObject
An object containing configuration for a program that the CPE will use to launch CasProcessor. It provides the means to define an executable program and its arguments
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCasProcessorExecArg(CasProcessorExecArg aArgs)Adds aCasProcessorExecArgargument to be supplied when launching a program.CasProcessorExecArg[]getAllCasProcessorExecArgs()Returns ALLCasProcessorExecArgargumentsCasProcessorExecArggetCasProcessorExecArg(int aIndex)Returns aCasProcessorExecArgargument identified by a given position in the list.java.util.ArrayList<CasProcessorRuntimeEnvParam>getEnvs()java.lang.StringgetExecutable()Returns an executable program that the CPE will use for launching CasProcessor.voidremoveCasProcessorExecArg(int aIndex)Removes program argument from the list.voidsetEnvs(java.util.ArrayList<CasProcessorRuntimeEnvParam> params)voidsetExecutable(java.lang.String aExecutable)Sets an executable program that the CPE will use for launching CasProcessor.-
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
-
setExecutable
void setExecutable(java.lang.String aExecutable)
Sets an executable program that the CPE will use for launching CasProcessor.- Parameters:
aExecutable- - program name (like java.exe)
-
getExecutable
java.lang.String getExecutable()
Returns an executable program that the CPE will use for launching CasProcessor.- Returns:
- - exec program as String
-
addCasProcessorExecArg
void addCasProcessorExecArg(CasProcessorExecArg aArgs)
Adds aCasProcessorExecArgargument to be supplied when launching a program.- Parameters:
aArgs- - argument for the executable program
-
getCasProcessorExecArg
CasProcessorExecArg getCasProcessorExecArg(int aIndex)
Returns aCasProcessorExecArgargument identified by a given position in the list.- Parameters:
aIndex- - position of argument to return- Returns:
CasProcessorExecArgargument
-
getAllCasProcessorExecArgs
CasProcessorExecArg[] getAllCasProcessorExecArgs()
Returns ALLCasProcessorExecArgarguments- Returns:
- array of
CasProcessorExecArg
-
removeCasProcessorExecArg
void removeCasProcessorExecArg(int aIndex)
Removes program argument from the list. The argument for deletion is identified by provided position in the list.- Parameters:
aIndex- - position of argument to delete
-
getEnvs
java.util.ArrayList<CasProcessorRuntimeEnvParam> getEnvs()
-
setEnvs
void setEnvs(java.util.ArrayList<CasProcessorRuntimeEnvParam> params)
- Parameters:
params- the CAS Processor Runtime Environment parameters
-
-