public class CpeDescriptionImpl extends MetaDataObject_impl implements CpeDescription
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContext| Constructor and Description |
|---|
CpeDescriptionImpl() |
CpeDescriptionImpl(XMLInputSource aInput)
This is needed for XMLParser.parseCpeDesription() to work.
|
| Modifier and Type | Method and Description |
|---|---|
CpeCollectionReaderCasInitializer |
addCasInitializer(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(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(Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions,
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(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(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(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.
|
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waittoXMLclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXMLpublic CpeDescriptionImpl()
public CpeDescriptionImpl(XMLInputSource aInput) throws InvalidXMLException
InvalidXMLExceptionpublic void addCollectionReader(CpeCollectionReader aCollectionReader) throws CpeDescriptorException
addCollectionReader in interface CpeDescriptionCpeDescriptorExceptionpublic CpeCollectionReader addCollectionReader(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.CpeCollectionReaderCpeDescriptorException - tbd@Deprecated public CpeCollectionReaderCasInitializer addCasInitializer(String aInitializerDescriptorPath) throws CpeDescriptorException
CpeDescriptionaddCasInitializer in interface CpeDescriptionaInitializerDescriptorPath - -
path to the CasInitializer descriptorCpeCollectionReaderCasInitializerCpeDescriptorException - tbdpublic CpeCollectionReader[] getAllCollectionCollectionReaders() throws CpeDescriptorException
CpeDescriptionCpeCollectionReader instances
representing ALL defined CollectionReaders.getAllCollectionCollectionReaders in interface CpeDescriptionCpeCollectionReader instances.CpeDescriptorException - tbdpublic void setAllCollectionCollectionReaders(CpeCollectionReader[] areaders) throws CpeDescriptorException
setAllCollectionCollectionReaders in interface CpeDescriptionCpeDescriptorExceptionpublic void setResourceManagerConfiguration(String aResMgrConfPagth)
CpeDescriptionsetResourceManagerConfiguration in interface CpeDescriptionaResMgrConfPagth - -
path to Resource Manager Configuration file.public void setCpeResourceManagerConfiguration(CpeResourceManagerConfiguration aResMgrConfPagth)
CpeDescriptionsetCpeResourceManagerConfiguration in interface CpeDescriptionaResMgrConfPagth - -
path to Resource Manager Configuration file.public CpeResourceManagerConfiguration getCpeResourceManagerConfiguration()
@Deprecated public void setInputQueueSize(int aSize) throws CpeDescriptorException
CpeDescriptionsetInputQueueSize in interface CpeDescriptionaSize - -
size of the queueCpeDescriptorException - tbdpublic void setProcessingUnitThreadCount(int aSize)
throws CpeDescriptorException
setProcessingUnitThreadCount in interface CpeDescriptionaSize - the number of threadsCpeDescriptorException - tbd@Deprecated public void setOutputQueueSize(int aSize) throws CpeDescriptorException
CpeDescriptionsetOutputQueueSize in interface CpeDescriptionaSize - -
size of the queueCpeDescriptorException - tbdpublic void setCpeCasProcessors(CpeCasProcessors aCasProcessors)
setCpeCasProcessors in interface CpeDescriptionpublic CpeCasProcessors getCpeCasProcessors() throws CpeDescriptorException
CpeDescriptionCpeCasProcessors instance containing
processing pipeline spec. This includes:
getCpeCasProcessors in interface CpeDescriptionCpeCasProcessorsCpeDescriptorException - tbdpublic 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 - tbdpublic 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 addCpeDescriptorException - tbdpublic void setCpeConfiguration(CpeConfiguration aConfiguration)
setCpeConfiguration in interface CpeDescriptionpublic 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 CpeDescriptionCpeConfigurationCpeDescriptorException - tbdpublic void setCpeConfig(CpeConfiguration aConfiguration)
public CpeConfiguration getCpeConfig() throws CpeDescriptorException
CpeDescriptorExceptionpublic void setCheckpoint(String aCheckpointFile, int aFrequency)
CpeDescriptionsetCheckpoint in interface CpeDescriptionaCheckpointFile - -
path for the checkpoint fileaFrequency - -
frequency in terms of mills for checkpointspublic void setDeployment(String aDeployMode)
CpeDescriptionsetDeployment in interface CpeDescriptionaDeployMode - -
CPM deployment modepublic void setNumToProcess(long aEntityCount)
CpeDescriptionsetNumToProcess in interface CpeDescriptionaEntityCount - -
entity countpublic void setStartingEntityId(String aStartEntityId)
CpeDescriptionsetStartingEntityId in interface CpeDescriptionaStartEntityId - -
entity idpublic void setTimer(String aTimerClass)
CpeDescriptionsetTimer in interface CpeDescriptionaTimerClass - -
name of the UimaTimer classpublic CpeResourceManagerConfiguration getResourceManagerConfiguration()
CpeDescriptiongetResourceManagerConfiguration in interface CpeDescriptionCpeResourceManagerConfigurationprotected void readUnknownPropertyValueFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions, List aKnownPropertyNames) throws InvalidXMLException
MetaDataObject_implreadUnknownPropertyValueFromXMLElement in class MetaDataObject_implaElement - DOM element to read fromaParser - parser to use to construct complex valuesaOptions - -aKnownPropertyNames - 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_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2018. All rights reserved.