Examples of CountStatistic


Examples of javax.management.j2ee.statistics.CountStatistic

        /**
         * Get the statistic JSR77 representation.
         * @return The statistic JSR77 representation.
         */
        public synchronized CountStatistic getJSR77Statistic() {
            return new CountStatistic() {
                public String getName() {
                    return CallCountStatistic.this.getName();
                }

                public String getDescription() {
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

        /**
         * Get the statistic JSR77 representation.
         * @return The statistic JSR77 representation.
         */
        public synchronized CountStatistic getJSR77Statistic() {
            return new CountStatistic() {
                public String getName() {
                    return TotalCallTimeStatistic.this.getName();
                }

                public String getDescription() {
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

        /**
         * Get the statistic JSR77 representation.
         * @return The statistic JSR77 representation.
         */
        public synchronized CountStatistic getJSR77Statistic() {
            return new CountStatistic() {
                public String getName() {
                    return MeanCallTimeStatistic.this.getName();
                }

                public String getDescription() {
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

                    mbeanStat.add(new String[] { "Start Time", startTime.toString() });
                    Date lastSampleTime = new Date(statistic.getLastSampleTime());
                    mbeanStat.add(new String[] { "Last Sample Time", lastSampleTime.toString() });

                    if (statistic instanceof CountStatistic) {
                        CountStatistic cStat = (CountStatistic) statistic;
                        long count = cStat.getCount();
                        mbeanStat.add(new String[] { "Count", Long.toString(count) });
                    } else if (statistic instanceof TimeStatistic) {
                        TimeStatistic tStat = (TimeStatistic) statistic;
                        long count = tStat.getCount();
                        mbeanStat.add(new String[] { "Count", Long.toString(count) });
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

                            .getLastSampleTime());
                    mbeanStat.add(new String[] { "Last Sample Time",
                            lastSampleTime.toString() });

                    if (statistic instanceof CountStatistic) {
                        CountStatistic cStat = (CountStatistic) statistic;
                        long count = cStat.getCount();
                        mbeanStat.add(new String[] { "Count",
                                Long.toString(count) });
                    } else if (statistic instanceof TimeStatistic) {
                        TimeStatistic tStat = (TimeStatistic) statistic;
                        long count = tStat.getCount();
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

                            .getLastSampleTime());
                    mbeanStat.add(new String[] { "Last Sample Time",
                            lastSampleTime.toString() });

                    if (statistic instanceof CountStatistic) {
                        CountStatistic cStat = (CountStatistic) statistic;
                        long count = cStat.getCount();
                        mbeanStat.add(new String[] { "Count",
                                Long.toString(count) });
                    } else if (statistic instanceof TimeStatistic) {
                        TimeStatistic tStat = (TimeStatistic) statistic;
                        long count = tStat.getCount();
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

        }catch(ClassNotFoundException cnfe){
            // TODO: Handle ClassNotFoundException
        }
       
        // Initialize a MutableCountStatistic
        CountStatistic u = new CountStatisticImpl(
                    sm.getString("jvmstats.jvm_uptime"),
                    sm.getString("jvmstats.milli_seconds"),
                    sm.getString("jvmstats.jvm_uptime_desc") );
        uptime = new MutableCountStatisticImpl(u);
       
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

   
    private void initializeStatistics() {
       
       // Initialize the MutableCountStatistic for ErrorCount
        CountStatistic c = new CountStatisticImpl("ErrorCount");
        errorCount = new MutableCountStatisticImpl(c);
       
        // Initialize the MutableCountStatistic for MaxTime
        c = new CountStatisticImpl("MaxTime", "milliseconds");
        maxTimeMillis = new MutableCountStatisticImpl(c);
View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

  
    /**
     * This method initialize statistics.
     */
    private void initializeStatistics() {
        CountStatistic cs = null;
       
        //enabled?
        cs = new CountStatisticImpl("FlagEnabled");
        flagEnabled = new MutableCountStatisticImpl( cs );

View Full Code Here

Examples of javax.management.j2ee.statistics.CountStatistic

                                     "String",
                                     "ID of the connection queue",
                                     startTime,
                                     startTime);

        CountStatistic c = new CountStatisticImpl("CountTotalConnections");
        countTotalConnections = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("CountQueued");
        countQueued = new MutableCountStatisticImpl(c);
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.