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