public abstract class ErrorHandlerBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
endpointThresholdMap |
Constructor and Description |
---|
ErrorHandlerBase() |
ErrorHandlerBase(java.util.Map anEndpointThreasholdMap) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
continueOnError(java.lang.String aDelegateKey,
Threshold aThreshold,
java.lang.String aCasReferenceId,
java.lang.Throwable t,
AnalysisEngineController aController) |
protected boolean |
exceedsThreshold(java.lang.String aThresholdToCheck,
java.lang.String endpoint,
AnalysisEngineController controller) |
protected boolean |
exceedsThreshold(Threshold aThreshold,
java.lang.String aThresholdToCheck,
java.lang.String endpoint,
AnalysisEngineController controller) |
protected boolean |
exceedsThresholdWithinWindow(Monitor aMonitor,
java.lang.String aStat,
java.lang.String aComponent,
Threshold aThreshold) |
protected java.lang.String |
getAction(java.lang.String aThresholdToCheck,
java.lang.String endpoint) |
protected java.lang.String |
getDelegateKey(Endpoint anEndpoint,
AnalysisEngineController aController) |
protected java.lang.String |
getEndpointName(AnalysisEngineController aController,
ErrorContext anErrorContext) |
java.util.Map |
getEndpointThresholdMap() |
protected Threshold |
getThreshold(Endpoint anEndpoint,
java.util.Map aDelegateMap,
AnalysisEngineController aController) |
protected Threshold |
getThreshold(java.lang.String aThresholdToCheck,
java.lang.String endpoint) |
protected void |
incrementStatistic(Monitor aMonitor,
java.lang.String aComponentName,
java.lang.String aStatistic) |
protected boolean |
isHandlerForError(ErrorContext anErrorContext,
int anExpectedCommand) |
protected boolean |
isValidActionForController(java.lang.String anAction,
AnalysisEngineController aController) |
protected boolean |
retryLastCommand(int aRetryCommand,
Endpoint anEndpoint,
AnalysisEngineController aController,
java.lang.String aKey,
Threshold aThreshold,
ErrorContext anErrorContext) |
protected boolean |
shouldRetry(Threshold aThreshold,
java.lang.String aKindOfRetryCount,
java.lang.String aKey,
AnalysisEngineController aController) |
public ErrorHandlerBase(java.util.Map anEndpointThreasholdMap)
public ErrorHandlerBase()
public java.util.Map getEndpointThresholdMap()
protected java.lang.String getAction(java.lang.String aThresholdToCheck, java.lang.String endpoint)
protected java.lang.String getDelegateKey(Endpoint anEndpoint, AnalysisEngineController aController)
protected boolean isValidActionForController(java.lang.String anAction, AnalysisEngineController aController)
protected Threshold getThreshold(java.lang.String aThresholdToCheck, java.lang.String endpoint)
protected boolean exceedsThreshold(java.lang.String aThresholdToCheck, java.lang.String endpoint, AnalysisEngineController controller)
protected boolean exceedsThreshold(Threshold aThreshold, java.lang.String aThresholdToCheck, java.lang.String endpoint, AnalysisEngineController controller)
protected java.lang.String getEndpointName(AnalysisEngineController aController, ErrorContext anErrorContext)
protected boolean isHandlerForError(ErrorContext anErrorContext, int anExpectedCommand)
protected boolean shouldRetry(Threshold aThreshold, java.lang.String aKindOfRetryCount, java.lang.String aKey, AnalysisEngineController aController)
protected Threshold getThreshold(Endpoint anEndpoint, java.util.Map aDelegateMap, AnalysisEngineController aController)
protected void incrementStatistic(Monitor aMonitor, java.lang.String aComponentName, java.lang.String aStatistic)
protected boolean retryLastCommand(int aRetryCommand, Endpoint anEndpoint, AnalysisEngineController aController, java.lang.String aKey, Threshold aThreshold, ErrorContext anErrorContext)
protected boolean exceedsThresholdWithinWindow(Monitor aMonitor, java.lang.String aStat, java.lang.String aComponent, Threshold aThreshold)
protected boolean continueOnError(java.lang.String aDelegateKey, Threshold aThreshold, java.lang.String aCasReferenceId, java.lang.Throwable t, AnalysisEngineController aController)
Copyright © 2012. All Rights Reserved.