|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CasProcessorErrorHandling
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 | |
---|---|
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. |
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 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 |
---|
void setMaxConsecutiveRestarts(CasProcessorMaxRestarts aCasPRestarts)
aCasPRestarts
- -
CasProcessorMaxRestarts
instanceCasProcessorMaxRestarts getMaxConsecutiveRestarts()
CasProcessorMaxRestarts
instancevoid setErrorRateThreshold(CasProcessorErrorRateThreshold aCasPErrorThreshold)
aCasPErrorThreshold
- -
CasProcessorErrorRateThreshold
CasProcessorErrorRateThreshold getErrorRateThreshold()
CasProcessorErrorRateThreshold
instancevoid setTimeout(CasProcessorTimeout aTimeout)
aTimeout
- CasProcessorTimeout
CasProcessorTimeout getTimeout()
CasProcessorTimeout
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |