|
||||||||||
| 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.CpeCasProcessorsImpl
public class CpeCasProcessorsImpl
| Constructor Summary | |
|---|---|
CpeCasProcessorsImpl()
|
|
| Method Summary | |
|---|---|
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(org.w3c.dom.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 org.xml.sax.helpers.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(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
Writes this object's XML representation by making calls on a SAX ContentHandler. |
| Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl |
|---|
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, 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.resource.metadata.MetaDataObject |
|---|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
| Methods inherited from interface org.apache.uima.util.XMLizable |
|---|
buildFromXMLElement, toXML, toXML, toXML |
| Constructor Detail |
|---|
public CpeCasProcessorsImpl()
| Method Detail |
|---|
public void setOutputQueueSize(int aOutputQueueSize)
throws CpeDescriptorException
CpeCasProcessors
setOutputQueueSize in interface CpeCasProcessorsaOutputQueueSize - -
Output queue size
CpeDescriptorExceptionpublic int getOutputQueueSize()
CpeCasProcessors
getOutputQueueSize in interface CpeCasProcessors
public void setInputQueueSize(int aInputQueueSize)
throws CpeDescriptorException
CpeCasProcessors
setInputQueueSize in interface CpeCasProcessorsaInputQueueSize - -
queue size
CpeDescriptorExceptionpublic int getInputQueueSize()
CpeCasProcessors
getInputQueueSize in interface CpeCasProcessors
public void setConcurrentPUCount(int aConcurrentPUCount)
throws CpeDescriptorException
CpeCasProcessors
setConcurrentPUCount in interface CpeCasProcessorsaConcurrentPUCount - -
number of ProcessingUnits(processing threads)
CpeDescriptorExceptionpublic int getConcurrentPUCount()
CpeCasProcessors
getConcurrentPUCount in interface CpeCasProcessors
public void addCpeCasProcessor(CpeCasProcessor aCasProcessor,
int aInsertPosition)
throws CpeDescriptorException
CpeCasProcessors
addCpeCasProcessor in interface CpeCasProcessorsaCasProcessor - -
CasProcessor to addaInsertPosition - -
position where to insert the CasProcessor
CpeDescriptorException
public void addCpeCasProcessor(CpeCasProcessor aCasProcessor)
throws CpeDescriptorException
CpeCasProcessors
addCpeCasProcessor in interface CpeCasProcessorsaCasProcessor - -
CasProcessor to add
CpeDescriptorException
public CpeCasProcessor getCpeCasProcessor(int aPosition)
throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor found at given position.
getCpeCasProcessor in interface CpeCasProcessorsaPosition - -
position of the CasProcessor
CpeCasProcessor
CpeDescriptorException
public CpeCasProcessor[] getAllCpeCasProcessors()
throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor objects in processing
pipeline.
getAllCpeCasProcessors in interface CpeCasProcessorsCpeCasProcessor
CpeDescriptorException
public void setAllCpeCasProcessors(CpeCasProcessor[] aCpeProcessors)
throws CpeDescriptorException
CpeDescriptorException
public 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 pipeline
CpeDescriptorException
public CpeCasProcessor[] removeCpeCasProcessor(int aPosition,
boolean flag)
throws CpeDescriptorException
CpeDescriptorException
public void removeAllCpeCasProcessors()
throws CpeDescriptorException
CpeCasProcessorsCpeCasProcessor objects from processing
pipeline.
removeAllCpeCasProcessors in interface CpeCasProcessorsCpeDescriptorException
public void setPoolSize(int aPoolSize)
throws CpeDescriptorException
setPoolSize in interface CpeCasProcessorsCpeDescriptorException
public int getPoolSize()
throws CpeDescriptorException
CpeDescriptorException
public void setDropCasOnException(boolean aDropCasOnException)
throws CpeDescriptorException
CpeDescriptorExceptionpublic boolean getDropCasOnException()
getDropCasOnException in interface CpeCasProcessors
public void buildFromXMLElement(org.w3c.dom.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 settings
InvalidXMLException - 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(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
throws org.xml.sax.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.
org.xml.sax.SAXExceptionXMLizable.toXML(org.xml.sax.ContentHandler, boolean)protected org.xml.sax.helpers.AttributesImpl getXMLAttributes()
getXMLAttributes in class MetaDataObject_implMetaDataObject_impl.getXMLAttributes()protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo in class MetaDataObject_implpublic int getCasPoolSize()
getCasPoolSize in interface CpeCasProcessorspublic boolean isDropCasOnException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||