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
The Class CasProcessorErrorHandlingImpl.- 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 Modifier and Type Field Description private CasProcessorErrorRateThresholderrorRateThrasholdThe error rate thrashold.private CasProcessorMaxRestartsmaxRestartsThe max restarts.private static longserialVersionUIDThe Constant serialVersionUID.private CasProcessorTimeouttimeoutThe timeout.private static XmlizationInfoXMLIZATION_INFOThe Constant XMLIZATION_INFO.-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description CasProcessorErrorHandlingImpl()Instantiates a new cas processor error handling impl.
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The Constant serialVersionUID.- See Also:
- Constant Field Values
-
timeout
private CasProcessorTimeout timeout
The timeout.
-
errorRateThrashold
private CasProcessorErrorRateThreshold errorRateThrashold
The error rate thrashold.
-
maxRestarts
private CasProcessorMaxRestarts maxRestarts
The max restarts.
-
XMLIZATION_INFO
private static final XmlizationInfo XMLIZATION_INFO
The Constant XMLIZATION_INFO.
-
-
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
-
-