Package org.eurekaJ.agent.model

Examples of org.eurekaJ.agent.model.StatisticInfo


    // System.out.println(buffer.toString());
  }
 
  public synchronized static void addStatistic(String name, long executionTime, long executionStart, String classType, String path) {
    boolean newStat = false;
    StatisticInfo si = statHash.get(name);
    if (si == null) {
      si = new StatisticInfo();
      si.setName(name);
      si.setClassType(classType);
      si.setPath(path);
      newStat = true;
    }
   
    si.addStat(executionTime, executionStart);
   
    if (newStat) {
      statHash.put(name, si);
    }
  }
View Full Code Here


    }
  }
 
  public synchronized static void addGroupStatistics(String name, long executionTime, long executionStart, String classType) {
    boolean newStat = false;
    StatisticInfo si = groupStatHash.get(name);
    if (si == null) {
      si = new StatisticInfo();
      si.setName(name);
      si.setClassType(classType);
      newStat = true;
    }
   
    si.addStat(executionTime, executionStart);
   
    if (newStat) {
      groupStatHash.put(name, si);
    }
  }
View Full Code Here

  }
 
  public synchronized static void addIncrement(String path) {
    boolean newStat = false;
    System.out.println("\tIncrementing count for: " + path);
    StatisticInfo si = valueHash.get(path);
    if (si == null) {
      si = new StatisticInfo();
      si.setName(path);
      si.setValue(1l);
      newStat = true;
    } else {
      si.setValue(si.getValue() + 1L);
    }
   
    if (newStat) {
      valueHash.put(path, si);
    }
View Full Code Here

    }
  }
 
  public synchronized static void addDecrement(String path) {
    System.out.println("\tDecrementing count for: " + path);
    StatisticInfo si = valueHash.get(path);
    if (si != null) {
      si.setValue(si.getValue() - 1l);
    }
  }
View Full Code Here

TOP

Related Classes of org.eurekaJ.agent.model.StatisticInfo

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.