Package org.apache.uima.aae.monitor.statistics

Examples of org.apache.uima.aae.monitor.statistics.Statistic


  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);
      }
View Full Code Here


    return threshold;
  }

  protected synchronized void incrementStatistic(Monitor aMonitor, String aComponentName,
          String aStatistic) {
    Statistic statistic = aMonitor.getStatistic(aComponentName, aStatistic);
    if (statistic == null) {
      statistic = new LongNumericStatistic(aStatistic);
      aMonitor.addStatistic(aComponentName, statistic);
    }
View Full Code Here

  }


  public void initialize() throws AsynchAEException
  {
    Statistic statistic = null;
    if ( (statistic = getMonitor().getLongNumericStatistic("",Monitor.ProcessCount)) == null )
    {
      statistic = new LongNumericStatistic(Monitor.ProcessCount);
      getMonitor().addStatistic("", statistic);
    }
View Full Code Here

  {
    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);
      }
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);
View Full Code Here

      }
      return threshold;
    }
  protected synchronized void incrementStatistic(Monitor aMonitor, String aComponentName, String aStatistic)
  {
    Statistic statistic = aMonitor.getStatistic(aComponentName, aStatistic);
    if ( statistic == null )
    {
      statistic = new LongNumericStatistic(aStatistic);
      aMonitor.addStatistic(aComponentName, statistic);
    }
View Full Code Here

  }
 
 
  private void initializeServiceStats()
  {
    Statistic statistic = null;
    if ( (statistic = getMonitor().getLongNumericStatistic("",Monitor.TotalDeserializeTime)) == null )
    {
      statistic = new LongNumericStatistic(Monitor.TotalDeserializeTime);
      getMonitor().addStatistic("", statistic);
    }
View Full Code Here

    }
    return parentController.getIndex() + 1;
  }

  private void initializeServiceStats() {
    Statistic statistic = null;
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.TotalDeserializeTime)) == null) {
      statistic = new LongNumericStatistic(Monitor.TotalDeserializeTime);
      getMonitor().addStatistic("", statistic);
    }
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.TotalSerializeTime)) == null) {
View Full Code Here

    }
    return false;
  }

  public void initialize() throws AsynchAEException {
    Statistic statistic = null;
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.ProcessCount)) == null) {
      statistic = new LongNumericStatistic(Monitor.ProcessCount);
      getMonitor().addStatistic("", statistic);
    }
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.ProcessErrorCount)) == null) {
View Full Code Here

    }
    return false;
  }

  public void initialize() throws AsynchAEException {
    Statistic statistic = null;
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.ProcessCount)) == null) {
      statistic = new LongNumericStatistic(Monitor.ProcessCount);
      getMonitor().addStatistic("", statistic);
    }
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.ProcessErrorCount)) == null) {
View Full Code Here

TOP

Related Classes of org.apache.uima.aae.monitor.statistics.Statistic

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.