public class CpeCasProcessorsImpl extends MetaDataObject_impl implements CpeCasProcessors
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
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, writePropertyAsElement
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, toXML, toXML, toXML
public void setOutputQueueSize(int aOutputQueueSize) throws CpeDescriptorException
CpeCasProcessors
setOutputQueueSize
in interface CpeCasProcessors
aOutputQueueSize
- -
Output queue sizeCpeDescriptorException
- tbdpublic int getOutputQueueSize()
CpeCasProcessors
getOutputQueueSize
in interface CpeCasProcessors
public void setInputQueueSize(int aInputQueueSize) throws CpeDescriptorException
CpeCasProcessors
setInputQueueSize
in interface CpeCasProcessors
aInputQueueSize
- -
queue sizeCpeDescriptorException
- tbdpublic int getInputQueueSize()
CpeCasProcessors
getInputQueueSize
in interface CpeCasProcessors
public void setConcurrentPUCount(int aConcurrentPUCount) throws CpeDescriptorException
CpeCasProcessors
setConcurrentPUCount
in interface CpeCasProcessors
aConcurrentPUCount
- -
number of ProcessingUnits(processing threads)CpeDescriptorException
- tbdpublic int getConcurrentPUCount()
CpeCasProcessors
getConcurrentPUCount
in interface CpeCasProcessors
public void addCpeCasProcessor(CpeCasProcessor aCasProcessor, int aInsertPosition) throws CpeDescriptorException
CpeCasProcessors
addCpeCasProcessor
in interface CpeCasProcessors
aCasProcessor
- -
CasProcessor to addaInsertPosition
- -
position where to insert the CasProcessorCpeDescriptorException
- tbdpublic void addCpeCasProcessor(CpeCasProcessor aCasProcessor) throws CpeDescriptorException
CpeCasProcessors
addCpeCasProcessor
in interface CpeCasProcessors
aCasProcessor
- -
CasProcessor to addCpeDescriptorException
- tbdpublic CpeCasProcessor getCpeCasProcessor(int aPosition) throws CpeDescriptorException
CpeCasProcessors
CpeCasProcessor
found at given position.getCpeCasProcessor
in interface CpeCasProcessors
aPosition
- -
position of the CasProcessorCpeCasProcessor
CpeDescriptorException
- tbdpublic CpeCasProcessor[] getAllCpeCasProcessors() throws CpeDescriptorException
CpeCasProcessors
CpeCasProcessor
objects in processing
pipeline.getAllCpeCasProcessors
in interface CpeCasProcessors
CpeCasProcessor
CpeDescriptorException
- tbdpublic void setAllCpeCasProcessors(CpeCasProcessor[] aCpeProcessors) throws CpeDescriptorException
CpeDescriptorException
public void removeCpeCasProcessor(int aPosition) throws CpeDescriptorException
CpeCasProcessors
CpeCasProcessor
object from processing
pipeline from a given position.removeCpeCasProcessor
in interface CpeCasProcessors
aPosition
- -
position of the CasProcessor in the pipelineCpeDescriptorException
- tbdpublic CpeCasProcessor[] removeCpeCasProcessor(int aPosition, boolean flag) throws CpeDescriptorException
CpeDescriptorException
public void removeAllCpeCasProcessors() throws CpeDescriptorException
CpeCasProcessors
CpeCasProcessor
objects from processing
pipeline.removeAllCpeCasProcessors
in interface CpeCasProcessors
CpeDescriptorException
- tbdpublic void setPoolSize(int aPoolSize) throws CpeDescriptorException
setPoolSize
in interface CpeCasProcessors
CpeDescriptorException
public int getPoolSize() throws CpeDescriptorException
CpeDescriptorException
public void setDropCasOnException(boolean aDropCasOnException) throws CpeDescriptorException
CpeDescriptorException
public boolean getDropCasOnException()
getDropCasOnException
in interface CpeCasProcessors
public void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
buildFromXMLElement
in interface XMLizable
buildFromXMLElement
in class MetaDataObject_impl
aElement
- 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
XMLizable
ContentHandler
.toXML
in interface XMLizable
toXML
in class MetaDataObject_impl
aContentHandler
- 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 calling
protected AttributesImpl getXMLAttributes()
getXMLAttributes
in class MetaDataObject_impl
MetaDataObject_impl.getXMLAttributes()
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
public int getCasPoolSize()
getCasPoolSize
in interface CpeCasProcessors
public boolean isDropCasOnException()
Copyright © 2017. All rights reserved.