Package org.apache.uima.aae.monitor

Examples of org.apache.uima.aae.monitor.Monitor


  protected boolean exceedsThreshold(String aThresholdToCheck, String endpoint,
          AnalysisEngineController controller) {
    Threshold threshold = getThreshold(aThresholdToCheck, endpoint);
    if (threshold != null) {
      Monitor monitor = controller.getMonitor();
      Statistic statistic = null;
      if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null) {
        statistic = new LongNumericStatistic(aThresholdToCheck);
        monitor.addStatistic(endpoint, statistic);
      }
      if (statistic instanceof LongNumericStatistic) {
        ((LongNumericStatistic) statistic).increment();
        if (threshold.exceeded(((LongNumericStatistic) statistic).getValue())) {
          return true;
View Full Code Here


  }

  protected boolean exceedsThreshold(Threshold aThreshold, String aThresholdToCheck,
          String endpoint, AnalysisEngineController controller) {
    if (aThreshold != null) {
      Monitor monitor = controller.getMonitor();
      Statistic statistic = null;

      if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null) {
        statistic = new LongNumericStatistic(aThresholdToCheck);
        monitor.addStatistic(endpoint, statistic);
      }
      if (Monitor.GetMetaErrorRetryCount.equals(aThresholdToCheck)
              || Monitor.ProcessErrorRetryCount.equals(aThresholdToCheck)) {
        return aThreshold.maxRetriesExceeded(((LongNumericStatistic) statistic).getValue());
      } else {
View Full Code Here

  protected boolean exceedsThreshold(String aThresholdToCheck, String endpoint,
          AnalysisEngineController controller) {
    Threshold threshold = getThreshold(aThresholdToCheck, endpoint);
    if (threshold != null) {
      Monitor monitor = controller.getMonitor();
      Statistic statistic = null;
      if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null) {
        statistic = new LongNumericStatistic(aThresholdToCheck);
        monitor.addStatistic(endpoint, statistic);
      }
      if (statistic instanceof LongNumericStatistic) {
        ((LongNumericStatistic) statistic).increment();
        if (threshold.exceeded(((LongNumericStatistic) statistic).getValue())) {
          return true;
View Full Code Here

  }

  protected boolean exceedsThreshold(Threshold aThreshold, String aThresholdToCheck,
          String endpoint, AnalysisEngineController controller) {
    if (aThreshold != null) {
      Monitor monitor = controller.getMonitor();
      Statistic statistic = null;

      if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null) {
        statistic = new LongNumericStatistic(aThresholdToCheck);
        monitor.addStatistic(endpoint, statistic);
      }
      if (Monitor.GetMetaErrorRetryCount.equals(aThresholdToCheck)
              || Monitor.ProcessErrorRetryCount.equals(aThresholdToCheck)) {
        return aThreshold.maxRetriesExceeded(((LongNumericStatistic) statistic).getValue());
      } else {
View Full Code Here

  protected boolean exceedsThreshold(String aThresholdToCheck, String endpoint, AnalysisEngineController controller)
  {
    Threshold threshold = getThreshold(aThresholdToCheck, endpoint);
    if (threshold != null )
    {
      Monitor monitor = controller.getMonitor();
      Statistic statistic = null;
      if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null)
      {
        statistic = new LongNumericStatistic(aThresholdToCheck);
        monitor.addStatistic(endpoint, statistic);
      }
      if ( statistic instanceof LongNumericStatistic)
      {
        ((LongNumericStatistic)statistic).increment();
        if (threshold.exceeded(((LongNumericStatistic)statistic).getValue()))
View Full Code Here

  protected boolean exceedsThreshold(Threshold aThreshold, String aThresholdToCheck, String endpoint, AnalysisEngineController controller)
  {
    if (aThreshold != null )
    {
      Monitor monitor = controller.getMonitor();
      Statistic statistic = null;
     
      if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null)
      {
        statistic = new LongNumericStatistic(aThresholdToCheck);
        monitor.addStatistic(endpoint, statistic);
      }
      if ( Monitor.GetMetaErrorRetryCount.equals(aThresholdToCheck) || Monitor.ProcessErrorRetryCount.equals(aThresholdToCheck))
      {
        return aThreshold.maxRetriesExceeded(((LongNumericStatistic)statistic).getValue());
      }
View Full Code Here

TOP

Related Classes of org.apache.uima.aae.monitor.Monitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.