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 booleancontinueOnError(String aDelegateKey, Threshold aThreshold, String aCasReferenceId, Throwable t, AnalysisEngineController aController) protected booleanexceedsThreshold(String aThresholdToCheck, String endpoint, AnalysisEngineController controller) protected booleanexceedsThreshold(Threshold aThreshold, String aThresholdToCheck, String endpoint, AnalysisEngineController controller) protected booleanexceedsThresholdWithinWindow(Monitor aMonitor, String aStat, String aComponent, Threshold aThreshold) protected Stringprotected StringgetDelegateKey(Endpoint anEndpoint, AnalysisEngineController aController) protected StringgetEndpointName(AnalysisEngineController aController, ErrorContext anErrorContext) protected ThresholdgetThreshold(String aThresholdToCheck, String endpoint) protected ThresholdgetThreshold(Endpoint anEndpoint, Map aDelegateMap, AnalysisEngineController aController) protected voidincrementStatistic(Monitor aMonitor, String aComponentName, String aStatistic) protected booleanisHandlerForError(ErrorContext anErrorContext, int anExpectedCommand) protected booleanisValidActionForController(String anAction, AnalysisEngineController aController) protected booleanretryLastCommand(int aRetryCommand, Endpoint anEndpoint, AnalysisEngineController aController, String aKey, Threshold aThreshold, ErrorContext anErrorContext) protected booleanshouldRetry(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)
-