Class CasProcessorErrorHandlingImpl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.collection.impl.metadata.cpe.CasProcessorErrorHandlingImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,CasProcessorErrorHandling
,MetaDataObject
,XMLizable
public class CasProcessorErrorHandlingImpl
extends MetaDataObject_impl
implements CasProcessorErrorHandling
The Class CasProcessorErrorHandlingImpl.
- See Also:
-
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
ConstructorDescriptionInstantiates a new cas processor error handling impl. -
Method Summary
Modifier and TypeMethodDescriptionReturns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.Returns max number of restarts allowed for a CasProcessor and an action to take by the CPE in case the threshold is reached.Returns the timeout the CPE will wait for a response from CasProcessor.protected XmlizationInfo
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
-
Constructor Details
-
CasProcessorErrorHandlingImpl
public CasProcessorErrorHandlingImpl()Instantiates a new cas processor error handling impl.
-
-
Method Details
-
setMaxConsecutiveRestarts
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
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
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
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
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
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
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
-