Interface CasProcessorErrorHandling
-
- All Superinterfaces:
java.lang.Cloneable,MetaDataObject,java.io.Serializable,XMLizable
- All Known Implementing Classes:
CasProcessorErrorHandlingImpl
public interface CasProcessorErrorHandling extends MetaDataObject
An object to contains configuration specific to error handling applicable to every CasProcossor. It provides the means of configuring max # of restarts for CasProcessor, error thresholds, and max timeout.
-
-
Method Summary
All Methods Instance Methods Abstract 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.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 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
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.- Parameters:
aCasPRestarts- -CasProcessorMaxRestartsinstance
-
getMaxConsecutiveRestarts
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.- Returns:
CasProcessorMaxRestartsinstance
-
setErrorRateThreshold
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.- Parameters:
aCasPErrorThreshold- -CasProcessorErrorRateThreshold
-
getErrorRateThreshold
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.- Returns:
CasProcessorErrorRateThresholdinstance
-
setTimeout
void setTimeout(CasProcessorTimeout aTimeout)
Sets the timeout the CPE will wait for a response from CasProcessor.- Parameters:
aTimeout-CasProcessorTimeout
-
getTimeout
CasProcessorTimeout getTimeout()
Returns the timeout the CPE will wait for a response from CasProcessor.- Returns:
CasProcessorTimeoutinstance
-
-