|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CpeDescription
Java representation of a Collection Processing Engine (CPE) XML descriptor. Generate an instance
of this class by calling either the
XMLParser.parseCpeDescription(XMLInputSource)
or
CpeDescriptorFactory.produceDescriptor()
. A
CPE instance can then be created by calling
UIMAFramework.produceCollectionProcessingEngine(CpeDescription)
.
Method Summary | |
---|---|
CpeCollectionReaderCasInitializer |
addCasInitializer(String aCasInitializerPath)
Deprecated. As of v2.0 CAS Initializers are deprecated. |
void |
addCasProcessor(CpeCasProcessor aCasProcessor)
Appends a instance of CpeCasProcessor to the end of
the list containing CPE CasProcessors. |
void |
addCasProcessor(int index,
CpeCasProcessor aCasProcessor)
Adds a instance of CpeCasProcessor at a specified
location in the list of CPE CasProcessors. |
void |
addCollectionReader(CpeCollectionReader aCollectionReader)
|
CpeCollectionReader |
addCollectionReader(String aCollectionReaderPath)
Adds a path to the descriptor file containing CollectionReader's configuration. |
CpeCollectionReader[] |
getAllCollectionCollectionReaders()
Returns a list of CpeCollectionReader instances
representing ALL defined CollectionReaders. |
CpeCasProcessors |
getCpeCasProcessors()
Returns a CpeCasProcessors instance containing
processing pipeline spec. |
CpeConfiguration |
getCpeConfiguration()
Returns the CPE configuration that includes: An ID of the entity to begin processing with (OPTIONAL) Number of entities to process Checkpoint definition (checkpoint file, frequency) A name of the class implementing UimaTimer interface. |
CpeResourceManagerConfiguration |
getResourceManagerConfiguration()
Returns ResourceManagerConfiguration instance. |
void |
setAllCollectionCollectionReaders(CpeCollectionReader[] readers)
|
void |
setCheckpoint(String aCheckpointFile,
int aFrequency)
Add checkpoint file and frequency (in millis) of checkpoints |
void |
setCpeCasProcessors(CpeCasProcessors aCasProcessors)
|
void |
setCpeConfiguration(CpeConfiguration aConfiguration)
|
void |
setCpeResourceManagerConfiguration(CpeResourceManagerConfiguration aResMgrConfPagth)
Defines the path to Resource Manager Configuration |
void |
setDeployment(String aDeployMode)
Define startup mode for the CPE. |
void |
setInputQueueSize(int aSize)
Defines the size for the InputQueue. |
void |
setNumToProcess(long aEntityCount)
Defines number of entities to process by the CPE. |
void |
setOutputQueueSize(int aSize)
Defines the size for the OutputQueue. |
void |
setProcessingUnitThreadCount(int aSize)
|
void |
setResourceManagerConfiguration(String aResMgrConfPagth)
Defines the path to Resource Manager Configuration |
void |
setStartingEntityId(String aStartEntityId)
Defines an id of the first entity to process. |
void |
setTimer(String aTimerClass)
Add name of the class that implements (@link org.apache.uima.util.UimaTimer} interface. |
void |
toXML(OutputStream aStream)
Generates XML for the CPE Descriptor and writes it out to prvided OutputStream. |
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 |
Method Detail |
---|
void addCollectionReader(CpeCollectionReader aCollectionReader) throws CpeDescriptorException
CpeDescriptorException
CpeCollectionReader addCollectionReader(String aCollectionReaderPath) throws CpeDescriptorException
This method causes the CPE descriptor to use the older <include> syntax. To use the
<import> syntax, you must use addCollectionReader(CpeCollectionReader)
instead.
aCollectionReaderPath
- -
path to the CollectionReader descriptor. A relative path is interpreted as
relative to the current working directory.
CpeCollectionReader
CpeDescriptorException
@Deprecated CpeCollectionReaderCasInitializer addCasInitializer(String aCasInitializerPath) throws CpeDescriptorException
aCasInitializerPath
- -
path to the CasInitializer descriptor
CpeCollectionReaderCasInitializer
CpeDescriptorException
CpeCollectionReader[] getAllCollectionCollectionReaders() throws CpeDescriptorException
CpeCollectionReader
instances
representing ALL defined CollectionReaders.
CpeCollectionReader
instances.
CpeDescriptorException
void setAllCollectionCollectionReaders(CpeCollectionReader[] readers) throws CpeDescriptorException
CpeDescriptorException
CpeCasProcessors getCpeCasProcessors() throws CpeDescriptorException
CpeCasProcessors
instance containing
processing pipeline spec. This includes:
CpeCasProcessors
CpeDescriptorException
void addCasProcessor(CpeCasProcessor aCasProcessor) throws CpeDescriptorException
CpeCasProcessor
to the end of
the list containing CPE CasProcessors.
A CasProcessor can either be:
aCasProcessor
- -
instance of CpeCasProcessor
to add.
CpeDescriptorException
void addCasProcessor(int index, CpeCasProcessor aCasProcessor) throws CpeDescriptorException
CpeCasProcessor
at a specified
location in the list of CPE CasProcessors. If the index is greater than the list size, the new
CpeCasProcessor
instance is appended to the list.
index
- -
insertion point for the CpeCasProcessor
aCasProcessor
- -
CasProcessor to add
CpeDescriptorException
CpeConfiguration getCpeConfiguration() throws CpeDescriptorException
UimaTimer
interface.
Using an instance of CpeConfiguration
the client
may change behavior of the CPE and corresponding to each of the elements in the above list.
CpeConfiguration
CpeDescriptorException
void setInputQueueSize(int aSize) throws CpeDescriptorException
aSize
- -
size of the queue
CpeDescriptorException
void setProcessingUnitThreadCount(int aSize) throws CpeDescriptorException
aSize
-
CpeDescriptorException
void setOutputQueueSize(int aSize) throws CpeDescriptorException
aSize
- -
size of the queue
CpeDescriptorException
void setCheckpoint(String aCheckpointFile, int aFrequency)
aCheckpointFile
- -
path for the checkpoint fileaFrequency
- -
frequency in terms of mills for checkpointsvoid setTimer(String aTimerClass)
aTimerClass
- -
name of the UimaTimer classvoid setDeployment(String aDeployMode)
aDeployMode
- -
CPM deployment modevoid setNumToProcess(long aEntityCount)
aEntityCount
- -
entity countvoid setStartingEntityId(String aStartEntityId)
aStartEntityId
- -
entity idvoid setResourceManagerConfiguration(String aResMgrConfPagth)
aResMgrConfPagth
- -
path to Resource Manager Configuration file.void setCpeResourceManagerConfiguration(CpeResourceManagerConfiguration aResMgrConfPagth)
aResMgrConfPagth
- -
path to Resource Manager Configuration file.CpeResourceManagerConfiguration getResourceManagerConfiguration()
CpeResourceManagerConfiguration
void setCpeCasProcessors(CpeCasProcessors aCasProcessors)
void toXML(OutputStream aStream) throws SAXException, IOException
toXML
in interface XMLizable
aStream
- -
stream to write
IOException
- if an I/O failure occurs
SAXException
void setCpeConfiguration(CpeConfiguration aConfiguration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |