Package javax.management.j2ee.statistics

Examples of javax.management.j2ee.statistics.CountStatistic


     * statistics.
     */
    protected void initializeStatistics() {

        long time = System.currentTimeMillis();
        CountStatistic cs = null;
   
        cs = new CountStatisticImpl(0,
            getLocalizedStringFor("num.conn.failed.validation",
                            "NumConnFailedValidation"),
            getLocalizedStringFor("stat.count", "Count"),
View Full Code Here


                                     "String",
                                     "ID of the thread pool",
                                     startTime,
                                     startTime);

        CountStatistic c = new CountStatisticImpl("CountThreadsIdle");
        countThreadsIdle = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("CountThreads");
        countThreads = new MutableCountStatisticImpl(c);
View Full Code Here

     */
  
    private void initializeStatistics() {
       
        // Initialize the MutableCountStatistic for BytesReceived
        CountStatistic c = new CountStatisticImpl("BytesReceived");
        bytesReceived = new MutableCountStatisticImpl(c);
       
        // Initialize the MutableCountStatistic for BytesSent
        c = new CountStatisticImpl("BytesSent");
        bytesSent = new MutableCountStatisticImpl(c);
View Full Code Here

    }

   
    private void initializeStatistics() {
       
        CountStatistic c = null;

        c = new CountStatisticImpl("CountConnections");
        countConnections = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("MaxConnections");
View Full Code Here

  
    private void initializeStatistics() {

        startTime = System.currentTimeMillis();
       
        CountStatistic c = new CountStatisticImpl("CountRequests");
        countRequests = new MutableCountStatisticImpl(c);
       
        c = new CountStatisticImpl("CountBytesReceived");
        countBytesReceived = new MutableCountStatisticImpl(c);
       
View Full Code Here

                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details",
                                GuiUtil.getMessage("monitoring.HighWater")+": " + stat.getHighWaterMark() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.LowWater")+": " + stat.getLowWaterMark() + " " + stat.getUnit()+ "<br/>");
                    } else if (stats[i] instanceof CountStatistic) {
                        CountStatistic stat = (CountStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCount() + " " + stat.getUnit());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details", "");
                    } else if (stats[i] instanceof TimeStatistic) {
                        TimeStatistic stat = (TimeStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCount() + " " + stat.getUnit());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details",
                                GuiUtil.getMessage("monitoring.MaxTime")+": " + stat.getMaxTime() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.MinTime")+": " + stat.getMinTime() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.TotalTime")+": " + stat.getTotalTime() + " " + stat.getUnit()+ "<br/>");
                    } else if (stats[i] instanceof StringStatistic) {
                        StringStatistic stat = (StringStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCurrent());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details", "");
                    } else if (stats[i] instanceof Statistic) {
                        statMap.put("Name", stats[i].getName());
                        statMap.put("Value", stats[i].getUnit());
                        statMap.put("Description", stats[i].getDescription());
View Full Code Here

    }
   
    private void initializeStatistics() {
       
       // Initialize the MutableCountStatistic for TotalCompilationTime
        CountStatistic c = new CountStatisticImpl(
            localStrMgr.getString("monitor.stats.total_compilation_time"),
            localStrMgr.getString("monitor.stats.milli_sec_units"),
            localStrMgr.getString("monitor.stats.total_compilation_time_desc"));
        compileTime = new MutableCountStatisticImpl(c);
    }
View Full Code Here

    }
   
    private void initializeStatistics() {
       
        // Initialize the MutableCountStatistic for CurrentThreadCpuTime
        CountStatistic c = new CountStatisticImpl(
                localStrMgr.getString("thread_cpu_time"),
                localStrMgr.getString("monitor.stats.nano_sec_units"),
                localStrMgr.getString("thread_cpu_time_desc"));
        curThreadCpuTime = new MutableCountStatisticImpl(c);
View Full Code Here

    }
   
    private void initializeStatistics() {
       
       // Initialize the MutableCountStatistic for TotalLoadedClassCount
        CountStatistic c = new CountStatisticImpl(
            localStrMgr.getString("monitor.stats.total_classes_load"),
            StatisticImpl.DEFAULT_UNIT,
            localStrMgr.getString("monitor.stats.total_classes_load_desc"));
        totalLoadedClassCount = new MutableCountStatisticImpl(c);
View Full Code Here

    }
   
    private void initializeStatistics() {
       
        // Initialize the MutableCountStatistic for BlockedTime
        CountStatistic c = new CountStatisticImpl(
            localStrMgr.getString("monitor.stats.blocked_time"),
            localStrMgr.getString("monitor.stats.milli_sec_units"),
            localStrMgr.getString("monitor.stats.blocked_time_desc"));
        blockedTime = new MutableCountStatisticImpl(c);
       
View Full Code Here

TOP

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

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.