Examples of RangeStatisticImpl


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

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

    * 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

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
        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

Examples of org.apache.activemq.management.RangeStatisticImpl

    /**
     * Use case for RangeStatisticImpl class.
     * @throws Exception
     */
    public void testStatistic() throws Exception {
        RangeStatisticImpl stat = new RangeStatisticImpl("myRange", "millis", "myDescription");
        assertStatistic(stat, "myRange", "millis", "myDescription");

        assertRangeStatistic(stat);
    }
View Full Code Here

Examples of org.apache.geronimo.management.stats.RangeStatisticImpl

    private boolean statsOn=false;

    public JettyWebContainerStatsImpl() {
        totalConnectionCount = new CountStatisticImpl("Total Connections", StatisticImpl.UNIT_COUNT,
                "The total number of connections since last reset");
        openConnectionCount = new RangeStatisticImpl("Open Connections", StatisticImpl.UNIT_COUNT,
                "The number of connections open at present");
        connectionRequestCount = new RangeStatisticImpl("Connection Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests handled by a particular connection");
        connectionDuration = new TimeStatisticImpl("Connection Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The legnth of time that individual connections have been open");
        totalErrorCount = new CountStatisticImpl("Error Count", StatisticImpl.UNIT_COUNT,
                "The number of reponses that were errors since statistics gathering started");
        totalRequestCount = new CountStatisticImpl("Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests that were handled since statistics gathering started");
        activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests being processed concurrently");
        requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The length of time that it's taken to handle individual requests");

        addStat("TotalConnectionCount", totalConnectionCount);
View Full Code Here

Examples of org.apache.geronimo.management.stats.RangeStatisticImpl

    private boolean statsOn=false;

    public JettyWebContainerStatsImpl() {
        totalConnectionCount = new CountStatisticImpl("Total Connections", StatisticImpl.UNIT_COUNT,
                "The total number of connections since last reset");
        openConnectionCount = new RangeStatisticImpl("Open Connections", StatisticImpl.UNIT_COUNT,
                "The number of connections open at present");
        connectionRequestCount = new RangeStatisticImpl("Connection Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests handled by a particular connection");
        connectionDuration = new TimeStatisticImpl("Connection Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The legnth of time that individual connections have been open");
        totalErrorCount = new CountStatisticImpl("Error Count", StatisticImpl.UNIT_COUNT,
                "The number of reponses that were errors since statistics gathering started");
        totalRequestCount = new CountStatisticImpl("Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests that were handled since statistics gathering started");
        activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests being processed concurrently");
        requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The length of time that it's taken to handle individual requests");

        addStat("TotalConnectionCount", totalConnectionCount);
View Full Code Here

Examples of org.apache.geronimo.management.stats.RangeStatisticImpl

                "The numbet of Errors during the observed period", 0);
        bytesSentCount = new CountStatisticImpl("Bytes Sent", StatisticImpl.UNIT_COUNT,
                "The number of bytes sent during the observerd period", 0);
        bytesReceivedCount = new CountStatisticImpl("Bytes Received", StatisticImpl.UNIT_COUNT,
                "The number of bytes received during the observerd period", 0);
        openConnectionCount = new RangeStatisticImpl("" + "Open Connections", StatisticImpl.UNIT_COUNT,
                "Range for connections opened during the observed period", 0); // all 0's
        busyThreads = new BoundedRangeStatisticImpl("Busy Threads", StatisticImpl.UNIT_COUNT,
                "BoundedRange for Threads currently busy serving requests", 0, 0, 0);
        addStat("RequestTime", requestTime); // better name
        addStat("activeRequestCount", activeRequestCount);
View Full Code Here

Examples of org.apache.geronimo.management.stats.RangeStatisticImpl

    private boolean statsOn=false;

    public JettyWebContainerStatsImpl() {
        totalConnectionCount = new CountStatisticImpl("Total Connections", StatisticImpl.UNIT_COUNT,
                "The total number of connections since last reset");
        openConnectionCount = new RangeStatisticImpl("Open Connections", StatisticImpl.UNIT_COUNT,
                "The number of connections open at present");
        connectionRequestCount = new RangeStatisticImpl("Connection Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests handled by a particular connection");
        connectionDuration = new TimeStatisticImpl("Connection Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The legnth of time that individual connections have been open");
        totalErrorCount = new CountStatisticImpl("Error Count", StatisticImpl.UNIT_COUNT,
                "The number of reponses that were errors since statistics gathering started");
        totalRequestCount = new CountStatisticImpl("Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests that were handled since statistics gathering started");
        activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests being processed concurrently");
        requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The length of time that it's taken to handle individual requests");

        addStat("TotalConnectionCount", totalConnectionCount);
View Full Code Here

Examples of org.apache.geronimo.management.stats.RangeStatisticImpl

    private CountStatisticImpl totalRequestCount;
    private RangeStatisticImpl activeRequestCount;
    private TimeStatisticImpl requestDuration;

    public JettyWebContainerStatsImpl() {
        openConnectionCount = new RangeStatisticImpl("Open Connections", StatisticImpl.UNIT_COUNT,
                "The number of connections open at present");
        connectionRequestCount = new RangeStatisticImpl("Connection Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests handled by a particular connection");
        connectionDuration = new TimeStatisticImpl("Connection Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The legnth of time that individual connections have been open");
        totalErrorCount = new CountStatisticImpl("Error Count", StatisticImpl.UNIT_COUNT,
                "The number of reponses that were errors since statistics gathering started");
        totalRequestCount = new CountStatisticImpl("Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests that were handled since statistics gathering started");
        activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests being processed concurrently");
        requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The legnth of time that it's taken to handle individual requests");

        addStat("OpenConnectionCount", openConnectionCount);
View Full Code Here

Examples of org.apache.geronimo.management.stats.RangeStatisticImpl

    private boolean statsOn=false;

    public JettyWebContainerStatsImpl() {
        totalRequestCount = new CountStatisticImpl("Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests that were handled since statistics gathering started");
        activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
                "The number of requests being processed concurrently");
        requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The length of time that it's taken to handle individual requests");
        requestDurationAvg = new CountStatisticImpl("Request Duration Average", StatisticImpl.UNIT_TIME_MILLISECOND,
                "The average length of time that it's taken to handle individual requests");
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.