Package org.apache.uima.aae.error
Class ErrorHandlerBase
java.lang.Object
org.apache.uima.aae.error.ErrorHandlerBase
- Direct Known Subclasses:
CpcErrorHandler
,GetMetaErrorHandler
,InvalidJMSMessageHandler
,JMSExceptionHandler
,ProcessCasErrorHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
continueOnError
(String aDelegateKey, Threshold aThreshold, String aCasReferenceId, Throwable t, AnalysisEngineController aController) protected boolean
exceedsThreshold
(String aThresholdToCheck, String endpoint, AnalysisEngineController controller) protected boolean
exceedsThreshold
(Threshold aThreshold, String aThresholdToCheck, String endpoint, AnalysisEngineController controller) protected boolean
exceedsThresholdWithinWindow
(Monitor aMonitor, String aStat, String aComponent, Threshold aThreshold) protected String
protected String
getDelegateKey
(Endpoint anEndpoint, AnalysisEngineController aController) protected String
getEndpointName
(AnalysisEngineController aController, ErrorContext anErrorContext) protected Threshold
getThreshold
(String aThresholdToCheck, String endpoint) protected Threshold
getThreshold
(Endpoint anEndpoint, Map aDelegateMap, AnalysisEngineController aController) protected void
incrementStatistic
(Monitor aMonitor, String aComponentName, String aStatistic) protected boolean
isHandlerForError
(ErrorContext anErrorContext, int anExpectedCommand) protected boolean
isValidActionForController
(String anAction, AnalysisEngineController aController) protected boolean
retryLastCommand
(int aRetryCommand, Endpoint anEndpoint, AnalysisEngineController aController, String aKey, Threshold aThreshold, ErrorContext anErrorContext) protected boolean
shouldRetry
(Threshold aThreshold, String aKindOfRetryCount, String aKey, AnalysisEngineController aController)
-
Field Details
-
endpointThresholdMap
-
-
Constructor Details
-
ErrorHandlerBase
-
ErrorHandlerBase
public ErrorHandlerBase()
-
-
Method Details
-
getEndpointThresholdMap
-
getAction
-
getDelegateKey
-
isValidActionForController
-
getThreshold
-
exceedsThreshold
protected boolean exceedsThreshold(String aThresholdToCheck, String endpoint, AnalysisEngineController controller) -
exceedsThreshold
protected boolean exceedsThreshold(Threshold aThreshold, String aThresholdToCheck, String endpoint, AnalysisEngineController controller) -
getEndpointName
-
isHandlerForError
-
shouldRetry
protected boolean shouldRetry(Threshold aThreshold, String aKindOfRetryCount, String aKey, AnalysisEngineController aController) -
getThreshold
protected Threshold getThreshold(Endpoint anEndpoint, Map aDelegateMap, AnalysisEngineController aController) -
incrementStatistic
-
retryLastCommand
protected boolean retryLastCommand(int aRetryCommand, Endpoint anEndpoint, AnalysisEngineController aController, String aKey, Threshold aThreshold, ErrorContext anErrorContext) -
exceedsThresholdWithinWindow
-
continueOnError
protected boolean continueOnError(String aDelegateKey, Threshold aThreshold, String aCasReferenceId, Throwable t, AnalysisEngineController aController)
-