|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.collection.impl.metadata.cpe.CpeDescriptionImpl
public class CpeDescriptionImpl
| Constructor Summary | |
|---|---|
CpeDescriptionImpl()
|
|
CpeDescriptionImpl(XMLInputSource aInput)
This is needed for XMLParser.parseCpeDesription() to work. |
|
| Method Summary | |
|---|---|
CpeCollectionReaderCasInitializer |
addCasInitializer(java.lang.String aInitializerDescriptorPath)
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(java.lang.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 |
getCpeConfig()
|
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 |
getCpeResourceManagerConfiguration()
|
CpeResourceManagerConfiguration |
getResourceManagerConfiguration()
Returns ResourceManagerConfiguration instance. |
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object in XML. |
protected void |
readUnknownPropertyValueFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions,
java.util.List aKnownPropertyNames)
Utility method that attempts to read a property value from an XML element even though it is not known to which property the value should be assigned. |
void |
setAllCollectionCollectionReaders(CpeCollectionReader[] areaders)
|
void |
setCheckpoint(java.lang.String aCheckpointFile,
int aFrequency)
Add checkpoint file and frequency (in millis) of checkpoints |
void |
setCpeCasProcessors(CpeCasProcessors aCasProcessors)
|
void |
setCpeConfig(CpeConfiguration aConfiguration)
|
void |
setCpeConfiguration(CpeConfiguration aConfiguration)
|
void |
setCpeResourceManagerConfiguration(CpeResourceManagerConfiguration aResMgrConfPagth)
Defines the path to Resource Manager Configuration |
void |
setDeployment(java.lang.String aDeployMode)
Define startup mode for the CPE. |
void |
setInputQueueSize(int aSize)
Deprecated. |
void |
setNumToProcess(long aEntityCount)
Defines number of entities to process by the CPE. |
void |
setOutputQueueSize(int aSize)
Deprecated. |
void |
setProcessingUnitThreadCount(int aSize)
|
void |
setResourceManagerConfiguration(java.lang.String aResMgrConfPagth)
Defines the path to Resource Manager Configuration |
void |
setStartingEntityId(java.lang.String aStartEntityId)
Defines an id of the first entity to process. |
void |
setTimer(java.lang.String aTimerClass)
Add name of the class that implements (@link org.apache.uima.util.UimaTimer} interface. |
| Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl |
|---|
buildFromXMLElement, buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.uima.collection.metadata.CpeDescription |
|---|
toXML |
| 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 |
| Constructor Detail |
|---|
public CpeDescriptionImpl()
public CpeDescriptionImpl(XMLInputSource aInput)
throws InvalidXMLException
InvalidXMLException| Method Detail |
|---|
public void addCollectionReader(CpeCollectionReader aCollectionReader)
throws CpeDescriptorException
addCollectionReader in interface CpeDescriptionCpeDescriptorException
public CpeCollectionReader addCollectionReader(java.lang.String aCollectionReaderPath)
throws CpeDescriptorException
CpeDescription
This method causes the CPE descriptor to use the older <include> syntax. To use the
<import> syntax, you must use CpeDescription.addCollectionReader(CpeCollectionReader) instead.
addCollectionReader in interface CpeDescriptionaCollectionReaderPath - -
path to the CollectionReader descriptor. A relative path is interpreted as
relative to the current working directory.
CpeCollectionReader
CpeDescriptorException
@Deprecated
public CpeCollectionReaderCasInitializer addCasInitializer(java.lang.String aInitializerDescriptorPath)
throws CpeDescriptorException
CpeDescription
addCasInitializer in interface CpeDescriptionaInitializerDescriptorPath - -
path to the CasInitializer descriptor
CpeCollectionReaderCasInitializer
CpeDescriptorException
public CpeCollectionReader[] getAllCollectionCollectionReaders()
throws CpeDescriptorException
CpeDescriptionCpeCollectionReader instances
representing ALL defined CollectionReaders.
getAllCollectionCollectionReaders in interface CpeDescriptionCpeCollectionReader instances.
CpeDescriptorException
public void setAllCollectionCollectionReaders(CpeCollectionReader[] areaders)
throws CpeDescriptorException
setAllCollectionCollectionReaders in interface CpeDescriptionCpeDescriptorExceptionpublic void setResourceManagerConfiguration(java.lang.String aResMgrConfPagth)
CpeDescription
setResourceManagerConfiguration in interface CpeDescriptionaResMgrConfPagth - -
path to Resource Manager Configuration file.public void setCpeResourceManagerConfiguration(CpeResourceManagerConfiguration aResMgrConfPagth)
CpeDescription
setCpeResourceManagerConfiguration in interface CpeDescriptionaResMgrConfPagth - -
path to Resource Manager Configuration file.public CpeResourceManagerConfiguration getCpeResourceManagerConfiguration()
@Deprecated
public void setInputQueueSize(int aSize)
throws CpeDescriptorException
CpeDescription
setInputQueueSize in interface CpeDescriptionaSize - -
size of the queue
CpeDescriptorException
public void setProcessingUnitThreadCount(int aSize)
throws CpeDescriptorException
setProcessingUnitThreadCount in interface CpeDescriptionCpeDescriptorException
@Deprecated
public void setOutputQueueSize(int aSize)
throws CpeDescriptorException
CpeDescription
setOutputQueueSize in interface CpeDescriptionaSize - -
size of the queue
CpeDescriptorExceptionpublic void setCpeCasProcessors(CpeCasProcessors aCasProcessors)
setCpeCasProcessors in interface CpeDescription
public CpeCasProcessors getCpeCasProcessors()
throws CpeDescriptorException
CpeDescriptionCpeCasProcessors instance containing
processing pipeline spec. This includes:
getCpeCasProcessors in interface CpeDescriptionCpeCasProcessors
CpeDescriptorException
public void addCasProcessor(CpeCasProcessor aCasProcessor)
throws CpeDescriptorException
CpeDescriptionCpeCasProcessor to the end of
the list containing CPE CasProcessors.
A CasProcessor can either be:
addCasProcessor in interface CpeDescriptionaCasProcessor - -
instance of CpeCasProcessor to add.
CpeDescriptorException
public void addCasProcessor(int index,
CpeCasProcessor aCasProcessor)
throws CpeDescriptorException
CpeDescriptionCpeCasProcessor 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.
addCasProcessor in interface CpeDescriptionindex - -
insertion point for the CpeCasProcessoraCasProcessor - -
CasProcessor to add
CpeDescriptorExceptionpublic void setCpeConfiguration(CpeConfiguration aConfiguration)
setCpeConfiguration in interface CpeDescription
public CpeConfiguration getCpeConfiguration()
throws CpeDescriptorException
CpeDescriptionUimaTimer 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.
getCpeConfiguration in interface CpeDescriptionCpeConfiguration
CpeDescriptorExceptionpublic void setCpeConfig(CpeConfiguration aConfiguration)
public CpeConfiguration getCpeConfig()
throws CpeDescriptorException
CpeDescriptorException
public void setCheckpoint(java.lang.String aCheckpointFile,
int aFrequency)
CpeDescription
setCheckpoint in interface CpeDescriptionaCheckpointFile - -
path for the checkpoint fileaFrequency - -
frequency in terms of mills for checkpointspublic void setDeployment(java.lang.String aDeployMode)
CpeDescription
setDeployment in interface CpeDescriptionaDeployMode - -
CPM deployment modepublic void setNumToProcess(long aEntityCount)
CpeDescription
setNumToProcess in interface CpeDescriptionaEntityCount - -
entity countpublic void setStartingEntityId(java.lang.String aStartEntityId)
CpeDescription
setStartingEntityId in interface CpeDescriptionaStartEntityId - -
entity idpublic void setTimer(java.lang.String aTimerClass)
CpeDescription
setTimer in interface CpeDescriptionaTimerClass - -
name of the UimaTimer classpublic CpeResourceManagerConfiguration getResourceManagerConfiguration()
CpeDescription
getResourceManagerConfiguration in interface CpeDescriptionCpeResourceManagerConfiguration
protected void readUnknownPropertyValueFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions,
java.util.List aKnownPropertyNames)
throws InvalidXMLException
MetaDataObject_impl
readUnknownPropertyValueFromXMLElement in class MetaDataObject_implaElement - DOM element to read fromaParser - parser to use to construct complex valuesaKnownPropertyNames - List of propertiees that we've already values for (these values will not be
overwritten)
InvalidXMLException - if no acceptable object is described by aElementprotected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo in class MetaDataObject_impl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||