Interface CasProcessorErrorHandling
- All Superinterfaces:
Cloneable,MetaDataObject,Serializable,XMLizable
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
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.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, setSourceUrlMethods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Method Details
-
setMaxConsecutiveRestarts
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
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
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
-