Package javax.management.j2ee.statistics

Examples of javax.management.j2ee.statistics.BoundedRangeStatistic


        J2EEServer[] servers = domains[0].getServerInstances();
        JVM[] jvms = helper.getJavaVMs(servers[0]);
        long elapsed = System.currentTimeMillis() - jvms[0].getKernelBootTime().getTime();
        if(jvms[0].isStatisticsProvider()) {
            JVMStats stats = (JVMStats) ((StatisticsProvider)jvms[0]).getStats();
            BoundedRangeStatistic heap = stats.getHeapSize();
            return new DynamicServerInfo(heap.getCurrent(), heap.getHighWaterMark(), heap.getUpperBound(), elapsed);
        } else {
            return new DynamicServerInfo(elapsed);
        }
    }
View Full Code Here


        J2EEServer[] servers = helper.getServers(domains[0]);
        JVM[] jvms = helper.getJavaVMs(servers[0]);
        long elapsed = System.currentTimeMillis() - jvms[0].getKernelBootTime().getTime();
        if(jvms[0].isStatisticsProvider()) {
            JVMStats stats = (JVMStats) ((StatisticsProvider)jvms[0]).getStats();
            BoundedRangeStatistic heap = stats.getHeapSize();
            return new DynamicServerInfo(heap.getCurrent(), heap.getHighWaterMark(), heap.getUpperBound(), elapsed);
        } else {
            return new DynamicServerInfo(elapsed);
        }
    }
View Full Code Here

                                minTime });
                        long totalTime = tStat.getTotalTime();
                        mbeanStat.add(new String[] { "Total Time",
                                Long.toString(totalTime) });
                    } else if (statistic instanceof BoundedRangeStatistic) {
                        BoundedRangeStatistic brStat = (BoundedRangeStatistic) statistic;
                        long upperBound = brStat.getUpperBound();
                        mbeanStat.add(new String[] { "Upper Bound",
                                Long.toString(upperBound) });
                        long lowerBound = brStat.getLowerBound();
                        mbeanStat.add(new String[] { "Lower Bound",
                                Long.toString(lowerBound) });
                        long highWaterMark = brStat.getHighWaterMark();
                        mbeanStat.add(new String[] { "High Water Mark",
                                Long.toString(highWaterMark) });
                        long lowWaterMark = brStat.getLowWaterMark();
                        mbeanStat.add(new String[] { "Low Water Mark",
                                Long.toString(lowWaterMark) });
                        long current = brStat.getCurrent();
                        mbeanStat.add(new String[] { "Current",
                                Long.toString(current) });
                    } else if (statistic instanceof BoundaryStatistic) {
                        BoundaryStatistic bStat = (BoundaryStatistic) statistic;
                        long upperBound = bStat.getUpperBound();
View Full Code Here

TOP

Related Classes of javax.management.j2ee.statistics.BoundedRangeStatistic

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.