Example usage for javax.management.j2ee.statistics Stats getStatistics

List of usage examples for javax.management.j2ee.statistics Stats getStatistics

Introduction

In this page you can find the example usage for javax.management.j2ee.statistics Stats getStatistics.

Prototype

Statistic[] getStatistics();

Source Link

Document

Returns an array containing all of the Statistic objects supported by this Stats object.

Usage

From source file:org.hyperic.hq.plugin.websphere.WebsphereCollector.java

protected final Stats getStats(AdminClient mServer, ObjectName name) throws PluginException {
    Stats stats = (Stats) getAttribute(mServer, name, "stats");
    if (log.isDebugEnabled()) {
        log.debug("[getStats] name = " + name);
        log.debug("[getStats] stats = " + ((stats != null) ? "OK" : "NULL"));
        if (stats != null) {
            for (int i = 0; i < stats.getStatistics().length; i++) {
                Statistic statistic = stats.getStatistics()[i];
                log.debug("[getStats] [" + getModuleName() + "] => statistic: " + statistic);
            }/*from w  w  w .j a  v a  2 s.co  m*/
        }
    }
    return stats;
}