Class ErrorHandlerBase

    • Field Detail

      • endpointThresholdMap

        protected java.util.Map endpointThresholdMap
    • Constructor Detail

      • ErrorHandlerBase

        public ErrorHandlerBase​(java.util.Map anEndpointThreasholdMap)
      • ErrorHandlerBase

        public ErrorHandlerBase()
    • Method Detail

      • getEndpointThresholdMap

        public java.util.Map getEndpointThresholdMap()
      • getAction

        protected java.lang.String getAction​(java.lang.String aThresholdToCheck,
                                             java.lang.String endpoint)
      • isValidActionForController

        protected boolean isValidActionForController​(java.lang.String anAction,
                                                     AnalysisEngineController aController)
      • getThreshold

        protected Threshold getThreshold​(java.lang.String aThresholdToCheck,
                                         java.lang.String endpoint)
      • exceedsThreshold

        protected boolean exceedsThreshold​(java.lang.String aThresholdToCheck,
                                           java.lang.String endpoint,
                                           AnalysisEngineController controller)
      • exceedsThreshold

        protected boolean exceedsThreshold​(Threshold aThreshold,
                                           java.lang.String aThresholdToCheck,
                                           java.lang.String endpoint,
                                           AnalysisEngineController controller)
      • isHandlerForError

        protected boolean isHandlerForError​(ErrorContext anErrorContext,
                                            int anExpectedCommand)
      • shouldRetry

        protected boolean shouldRetry​(Threshold aThreshold,
                                      java.lang.String aKindOfRetryCount,
                                      java.lang.String aKey,
                                      AnalysisEngineController aController)
      • incrementStatistic

        protected void incrementStatistic​(Monitor aMonitor,
                                          java.lang.String aComponentName,
                                          java.lang.String aStatistic)
      • exceedsThresholdWithinWindow

        protected boolean exceedsThresholdWithinWindow​(Monitor aMonitor,
                                                       java.lang.String aStat,
                                                       java.lang.String aComponent,
                                                       Threshold aThreshold)
      • continueOnError

        protected boolean continueOnError​(java.lang.String aDelegateKey,
                                          Threshold aThreshold,
                                          java.lang.String aCasReferenceId,
                                          java.lang.Throwable t,
                                          AnalysisEngineController aController)