Class CasProcessorErrorHandlingImpl
- java.lang.Object
-
- org.apache.uima.resource.metadata.impl.MetaDataObject_impl
-
- 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
-
-
Field Summary
-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description CasProcessorErrorHandlingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CasProcessorErrorRateThresholdgetErrorRateThreshold()Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.CasProcessorMaxRestartsgetMaxConsecutiveRestarts()Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.CasProcessorTimeoutgetTimeout()Returns the timeout the CPE will wait for a response from CasProcessor.protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidsetErrorRateThreshold(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.voidsetMaxConsecutiveRestarts(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.voidsetTimeout(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, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, 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
-
-
-
-
Method Detail
-
setMaxConsecutiveRestarts
public void setMaxConsecutiveRestarts(CasProcessorMaxRestarts aCasPRestarts)
Description copied from interface:CasProcessorErrorHandlingSets max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.- Specified by:
setMaxConsecutiveRestartsin interfaceCasProcessorErrorHandling- Parameters:
aCasPRestarts- -CasProcessorMaxRestartsinstance
-
getMaxConsecutiveRestarts
public CasProcessorMaxRestarts getMaxConsecutiveRestarts()
Description copied from interface:CasProcessorErrorHandlingReturns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.- Specified by:
getMaxConsecutiveRestartsin interfaceCasProcessorErrorHandling- Returns:
CasProcessorMaxRestartsinstance
-
setErrorRateThreshold
public void setErrorRateThreshold(CasProcessorErrorRateThreshold aCasPErrorThreshold)
Description copied from interface:CasProcessorErrorHandlingSets max number of errors allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.- Specified by:
setErrorRateThresholdin interfaceCasProcessorErrorHandling- Parameters:
aCasPErrorThreshold- -CasProcessorErrorRateThreshold
-
getErrorRateThreshold
public CasProcessorErrorRateThreshold getErrorRateThreshold()
Description copied from interface:CasProcessorErrorHandlingReturns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.- Specified by:
getErrorRateThresholdin interfaceCasProcessorErrorHandling- Returns:
CasProcessorErrorRateThresholdinstance
-
setTimeout
public void setTimeout(CasProcessorTimeout aTimeout)
Description copied from interface:CasProcessorErrorHandlingSets the timeout the CPE will wait for a response from CasProcessor.- Specified by:
setTimeoutin interfaceCasProcessorErrorHandling- Parameters:
aTimeout-CasProcessorTimeout
-
getTimeout
public CasProcessorTimeout getTimeout()
Description copied from interface:CasProcessorErrorHandlingReturns the timeout the CPE will wait for a response from CasProcessor.- Specified by:
getTimeoutin interfaceCasProcessorErrorHandling- Returns:
CasProcessorTimeoutinstance
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-
-