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 CasProcessorErrorRateThreshold
errorRateThrashold
The error rate thrashold.private CasProcessorMaxRestarts
maxRestarts
The max restarts.private static long
serialVersionUID
The Constant serialVersionUID.private CasProcessorTimeout
timeout
The timeout.private static XmlizationInfo
XMLIZATION_INFO
The 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 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, 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: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 interfaceCasProcessorErrorHandling
- 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 interfaceCasProcessorErrorHandling
- 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 interfaceCasProcessorErrorHandling
- 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 interfaceCasProcessorErrorHandling
- 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 interfaceCasProcessorErrorHandling
- 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 interfaceCasProcessorErrorHandling
- 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 classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
-
-