Examples of MeasureAggregation


Examples of org.jboss.profiler.aop.monitoring.model.MeasureAggregation

    public static Collection getMeasuresSet() {
        return measuresMap.values();
    }

    public static MeasureAggregation findAggregation(String aggregationName) {
        MeasureAggregation aggregation = (MeasureAggregation) aggregationsMap.get(aggregationName);
        if (aggregation==null) {
            synchronized (aggregationsMap) {
                aggregation = (MeasureAggregation) aggregationsMap.get(aggregationName);
                if (aggregation==null) {
                    aggregation = new MeasureAggregation(aggregationName);
                    aggregationsMap.put(aggregationName,aggregation);
                }
            }
        }
View Full Code Here

Examples of org.jboss.profiler.aop.monitoring.model.MeasureAggregation

            synchronized (measuresMap) {
                monitoringMeasure = (MonitoringMeasure)measuresMap.get(measure);
                if (monitoringMeasure==null) {
                  monitoringMeasure = new MonitoringMeasure(measure);
                  measuresMap.put(measure,monitoringMeasure);
                  MeasureAggregation aggregationObject = findAggregation(aggregation);
                  aggregationObject.setMeasure(measure,monitoringMeasure);
                }
            }
        }
        return monitoringMeasure;
    }
View Full Code Here

Examples of org.jboss.profiler.aop.monitoring.model.MeasureAggregation

        TimeValue value = (TimeValue) measure.getValues().values().toArray()[0];
        assertEquals(1000, value.getCallings());
        assertEquals (2,MonitoringController.getAggregationsSet().size());

        MeasureAggregation aggregation = MonitoringController.findAggregation("Test");
        if (aggregation!=null) {
          Iterator measures = aggregation.getMeasureSet().iterator();

          while (measures.hasNext()) {
              measure = (MonitoringMeasure)measures.next();
              TimeValue rootValue = measure.getRootValue();
          }
View Full Code Here

Examples of org.jboss.profiler.aop.monitoring.model.MeasureAggregation


    public void printMeasures() {
        Iterator aggregations = MonitoringController.getAggregationsSet().iterator();
        while (aggregations.hasNext()) {
            MeasureAggregation aggregation = (MeasureAggregation) aggregations.next();
            System.out.println("_____________________________________________________");
            System.out.println("Aggregation=" + aggregation.getName());
            Iterator measures = aggregation.getMeasureSet().iterator();
            while (measures.hasNext()) {
                MonitoringMeasure measure = (MonitoringMeasure)measures.next();
                System.out.print("Measure=" + measure.getName() + " callings="+ measure.getRootValue().getCallings() + " Time elements=" + measure.getValues().size());
                if (measure.getRootValue().getCallings()!=0) {
                    System.out.println(" avg time=" + (measure.getRootValue().getTotalTime()/measure.getRootValue().getCallings()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.