org.apache.uima.collection.impl.metadata.cpe
Class CasProcessorErrorHandlingImpl

java.lang.Object
  extended by org.apache.uima.resource.metadata.impl.MetaDataObject_impl
      extended by org.apache.uima.collection.impl.metadata.cpe.CasProcessorErrorHandlingImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, CasProcessorErrorHandling, MetaDataObject, XMLizable

public class CasProcessorErrorHandlingImpl
extends MetaDataObject_impl
implements CasProcessorErrorHandling

See Also:
Serialized Form

Constructor Summary
CasProcessorErrorHandlingImpl()
           
 
Method Summary
 CasProcessorErrorRateThreshold getErrorRateThreshold()
          Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.
 CasProcessorMaxRestarts getMaxConsecutiveRestarts()
          Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.
 CasProcessorTimeout getTimeout()
          Returns the timeout the CPE will wait for a response from CasProcessor.
protected  XmlizationInfo getXmlizationInfo()
          To be implemented by subclasses to return information describing how to represent this object in XML.
 void setErrorRateThreshold(CasProcessorErrorRateThreshold aCasPErrorThreshold)
          Sets max number of errors allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.
 void setMaxConsecutiveRestarts(CasProcessorMaxRestarts aCasPRestarts)
          Sets max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.
 void setTimeout(CasProcessorTimeout aTimeout)
          Sets the timeout the CPE will wait for a response from CasProcessor.
 
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, readUnknownPropertyValueFromXMLElement, 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.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, toXML
 

Constructor Detail

CasProcessorErrorHandlingImpl

public CasProcessorErrorHandlingImpl()
Method Detail

setMaxConsecutiveRestarts

public void setMaxConsecutiveRestarts(CasProcessorMaxRestarts aCasPRestarts)
Description copied from interface: CasProcessorErrorHandling
Sets max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.

Specified by:
setMaxConsecutiveRestarts in interface CasProcessorErrorHandling
Parameters:
aCasPRestarts - - CasProcessorMaxRestarts instance

getMaxConsecutiveRestarts

public CasProcessorMaxRestarts getMaxConsecutiveRestarts()
Description copied from interface: CasProcessorErrorHandling
Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.

Specified by:
getMaxConsecutiveRestarts in interface CasProcessorErrorHandling
Returns:
CasProcessorMaxRestarts instance

setErrorRateThreshold

public void setErrorRateThreshold(CasProcessorErrorRateThreshold aCasPErrorThreshold)
Description copied from interface: CasProcessorErrorHandling
Sets max number of errors allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.

Specified by:
setErrorRateThreshold in interface CasProcessorErrorHandling
Parameters:
aCasPErrorThreshold - - CasProcessorErrorRateThreshold

getErrorRateThreshold

public CasProcessorErrorRateThreshold getErrorRateThreshold()
Description copied from interface: CasProcessorErrorHandling
Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.

Specified by:
getErrorRateThreshold in interface CasProcessorErrorHandling
Returns:
CasProcessorErrorRateThreshold instance

setTimeout

public void setTimeout(CasProcessorTimeout aTimeout)
Description copied from interface: CasProcessorErrorHandling
Sets the timeout the CPE will wait for a response from CasProcessor.

Specified by:
setTimeout in interface CasProcessorErrorHandling
Parameters:
aTimeout - CasProcessorTimeout

getTimeout

public CasProcessorTimeout getTimeout()
Description copied from interface: CasProcessorErrorHandling
Returns the timeout the CPE will wait for a response from CasProcessor.

Specified by:
getTimeout in interface CasProcessorErrorHandling
Returns:
CasProcessorTimeout instance

getXmlizationInfo

protected XmlizationInfo getXmlizationInfo()
Description copied from class: MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.

Specified by:
getXmlizationInfo in class MetaDataObject_impl
Returns:
information defining this object's XML representation


Copyright © 2012. All Rights Reserved.