public class CpeCasProcessorsImpl extends MetaDataObject_impl implements CpeCasProcessors
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContext| Constructor and Description |
|---|
CpeCasProcessorsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCpeCasProcessor(CpeCasProcessor aCasProcessor)
Appends new CasProcessor to existing list of CasProcessors
|
void |
addCpeCasProcessor(CpeCasProcessor aCasProcessor,
int aInsertPosition)
Inserts a new CasProcessor at an indicated position.
|
void |
buildFromXMLElement(Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to read Cas Processor attributes.
|
CpeCasProcessor[] |
getAllCpeCasProcessors()
Returns ALL
CpeCasProcessor objects in processing
pipeline. |
int |
getCasPoolSize() |
int |
getConcurrentPUCount()
Returns number of ProcessingUnits.
|
CpeCasProcessor |
getCpeCasProcessor(int aPosition)
Returns
CpeCasProcessor found at given position. |
boolean |
getDropCasOnException() |
int |
getInputQueueSize()
Returns size of the InputQueue.
|
int |
getOutputQueueSize()
Returns the size of the OutputQueue.
|
int |
getPoolSize() |
protected AttributesImpl |
getXMLAttributes()
Overridden to handle Cas Processor attributes.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
boolean |
isDropCasOnException() |
void |
removeAllCpeCasProcessors()
Removes ALL
CpeCasProcessor objects from processing
pipeline. |
void |
removeCpeCasProcessor(int aPosition)
Removes
CpeCasProcessor object from processing
pipeline from a given position. |
CpeCasProcessor[] |
removeCpeCasProcessor(int aPosition,
boolean flag)
New API 01/06/2006
|
void |
setAllCpeCasProcessors(CpeCasProcessor[] aCpeProcessors) |
void |
setConcurrentPUCount(int aConcurrentPUCount)
Sets ProcessingUnit replication.
|
void |
setDropCasOnException(boolean aDropCasOnException) |
void |
setInputQueueSize(int aInputQueueSize)
Sets the size of the InputQueue.
|
void |
setOutputQueueSize(int aOutputQueueSize)
Sets the size of the OutputQueue.
|
void |
setPoolSize(int aPoolSize) |
void |
toXML(ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
Writes this object's XML representation by making calls on a SAX
ContentHandler. |
buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, toXML, toXML, toXMLpublic void setOutputQueueSize(int aOutputQueueSize)
throws CpeDescriptorException
CpeCasProcessorssetOutputQueueSize in interface CpeCasProcessorsaOutputQueueSize - -
Output queue sizeCpeDescriptorException - tbdpublic int getOutputQueueSize()
CpeCasProcessorsgetOutputQueueSize in interface CpeCasProcessorspublic void setInputQueueSize(int aInputQueueSize)
throws CpeDescriptorException
CpeCasProcessorssetInputQueueSize in interface CpeCasProcessorsaInputQueueSize - -
queue sizeCpeDescriptorException - tbdpublic int getInputQueueSize()
CpeCasProcessorsgetInputQueueSize in interface CpeCasProcessorspublic void setConcurrentPUCount(int aConcurrentPUCount)
throws CpeDescriptorException
CpeCasProcessorssetConcurrentPUCount in interface CpeCasProcessorsaConcurrentPUCount - -
number of ProcessingUnits(processing threads)CpeDescriptorException - tbdpublic int getConcurrentPUCount()
CpeCasProcessorsgetConcurrentPUCount in interface CpeCasProcessorspublic void addCpeCasProcessor(CpeCasProcessor aCasProcessor, int aInsertPosition) throws CpeDescriptorException
CpeCasProcessorsaddCpeCasProcessor in interface CpeCasProcessorsaCasProcessor - -
CasProcessor to addaInsertPosition - -
position where to insert the CasProcessorCpeDescriptorException - tbdpublic void addCpeCasProcessor(CpeCasProcessor aCasProcessor) throws CpeDescriptorException
CpeCasProcessorsaddCpeCasProcessor in interface CpeCasProcessorsaCasProcessor - -
CasProcessor to addCpeDescriptorException - tbdpublic CpeCasProcessor getCpeCasProcessor(int aPosition) throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor found at given position.getCpeCasProcessor in interface CpeCasProcessorsaPosition - -
position of the CasProcessorCpeCasProcessorCpeDescriptorException - tbdpublic CpeCasProcessor[] getAllCpeCasProcessors() throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor objects in processing
pipeline.getAllCpeCasProcessors in interface CpeCasProcessorsCpeCasProcessorCpeDescriptorException - tbdpublic void setAllCpeCasProcessors(CpeCasProcessor[] aCpeProcessors) throws CpeDescriptorException
CpeDescriptorExceptionpublic void removeCpeCasProcessor(int aPosition)
throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor object from processing
pipeline from a given position.removeCpeCasProcessor in interface CpeCasProcessorsaPosition - -
position of the CasProcessor in the pipelineCpeDescriptorException - tbdpublic CpeCasProcessor[] removeCpeCasProcessor(int aPosition, boolean flag) throws CpeDescriptorException
CpeDescriptorExceptionpublic void removeAllCpeCasProcessors()
throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor objects from processing
pipeline.removeAllCpeCasProcessors in interface CpeCasProcessorsCpeDescriptorException - tbdpublic void setPoolSize(int aPoolSize)
throws CpeDescriptorException
setPoolSize in interface CpeCasProcessorsCpeDescriptorExceptionpublic int getPoolSize()
throws CpeDescriptorException
CpeDescriptorExceptionpublic void setDropCasOnException(boolean aDropCasOnException)
throws CpeDescriptorException
CpeDescriptorExceptionpublic boolean getDropCasOnException()
getDropCasOnException in interface CpeCasProcessorspublic void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
buildFromXMLElement in interface XMLizablebuildFromXMLElement in class MetaDataObject_implaElement - the XML element that represents this object.aParser - a reference to the UIMA XMLParser. The
XMLParser.buildObject(Element) method can be used to construct sub-objects.aOptions - option settingsInvalidXMLException - if the input XML element does not specify a valid objectMetaDataObject_impl.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser, org.apache.uima.util.XMLParser.ParsingOptions)public void toXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) throws SAXException
XMLizableContentHandler.toXML in interface XMLizabletoXML in class MetaDataObject_implaContentHandler - the content handler to which this object will write events that describe its XML
representation.aWriteDefaultNamespaceAttribute - whether the namespace of this element should be written as the default namespace. This
should be done only for the root element, and it defaults to false.SAXException - pass thruThis is called internally, also for JSon serialization
If this is the first call to serialize, create a serialContext (and clean up afterwards)
Other callers (e.g. JSON) must set the serialContext first before callingprotected AttributesImpl getXMLAttributes()
getXMLAttributes in class MetaDataObject_implMetaDataObject_impl.getXMLAttributes()protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implpublic int getCasPoolSize()
getCasPoolSize in interface CpeCasProcessorspublic boolean isDropCasOnException()
Copyright © 2018. All rights reserved.