Package com.sun.enterprise.admin.monitor.stats

Examples of com.sun.enterprise.admin.monitor.stats.RangeStatisticImpl


       
        //the low water mark is set with a seed value of 1 to
        //ensure that the comparison with currentVal returns
        //the correct low water mark the first time around
        //the least number of connections that we can use is always 1
        numConnUsed_ = new RangeStatisticImpl(0, 0, 1,
                        getLocalizedStringFor("num.conn.used", "NumConnUsed"),
                        getLocalizedStringFor("stat.count", "Count"),
                        getLocalizedStringFor("num.conn.used.desc",
                                        "Number Of Connections used"),
                        time, time);
       
        numConnFree_ = new RangeStatisticImpl(0, 0, 1,
                        getLocalizedStringFor("num.conn.free", "NumConnFree"),
                        getLocalizedStringFor("stat.count", "Count"),
                        getLocalizedStringFor("num.conn.free.desc",
                                        "Number Of Free Connections"),
                        time, time);
        numConnRequestWaitTime_ = new RangeStatisticImpl(0, 0, 1,
                        getLocalizedStringFor("conn.request.wait.time",
                                        "ConnRequestWaitTime"),
                        getLocalizedStringFor("stat.milliseconds", "milliseconds"),
                        getLocalizedStringFor("conn.request.wait.time.desc",
                                        "Max and min connection request wait times"),
View Full Code Here


    * A utility method to update a range statistic
    */
   protected RangeStatistic getUpdatedRangeStatistic
                       (RangeStatistic originalStat, long currentValue,
                                       long maxValue, long minValue){
       return new RangeStatisticImpl(currentValue, maxValue, minValue,
           originalStat.getName(), originalStat.getUnit(),
           originalStat.getDescription(), originalStat.getStartTime(),
           System.currentTimeMillis());
   }
View Full Code Here

        //the low water mark is set with a seed value of 1 to
        //ensure that the comparison with currentVal returns
        //the correct low water mark the first time around
        //the least number of connections that we can use is always 1
        activeWorkCount = new RangeStatisticImpl(0, 0,
            1, "ActiveWorkCount", "",
        "Number of active work objects",
        time, time);

        waitQueueLength = new RangeStatisticImpl(0, 0,
            1, "WaitQueueLength", "",
        "Number of work objects waiting in the queue for execution",
        time, time);

        workRequestWaitTime = new RangeStatisticImpl(0, 0,
                        1, "workRequestWaitTime", "",
                    "Number of work objects waiting in the queue for execution",
                    time, time);
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.monitor.stats.RangeStatisticImpl

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.