Package com.sun.messaging.jmq.io

Examples of com.sun.messaging.jmq.io.MetricCounters.update()


  MetricCounters mc = (MetricCounters)deadTotalsByService.get(service);
  if (mc == null) {
      mc = new MetricCounters();
      deadTotalsByService.put(service, mc);
  }
        mc.update(counters);
    }

    public synchronized void reset() {
        deadTotalsByService.clear();
        lastSample = new MetricCounters();
View Full Code Here


        // Add counters for connections that no longer exist
        if (serviceName == null) {
            // Sum values for all services
            Enumeration e;
            for (e = deadTotalsByService.elements(); e.hasMoreElements(); ) {
                totals.update((MetricCounters)e.nextElement());
            }
        } else {
            // Sum values for just the specified service
      MetricCounters deadTotals =
                    (MetricCounters)deadTotalsByService.get(serviceName);
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.