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
ConstructorsConstructorDescriptionInstantiates 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 XmlizationInfoTo 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, writePropertyAsElementMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlMethods 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: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
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
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
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
Description copied from interface:CasProcessorErrorHandlingSets the timeout the CPE will wait for a response from CasProcessor.- Specified by:
setTimeoutin interfaceCasProcessorErrorHandling- Parameters:
aTimeout-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
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
-