Package javax.management.j2ee.statistics

Examples of javax.management.j2ee.statistics.CountStatistic


    }
   
    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.milli_sec_units_desc"));
        upTime = new MutableCountStatisticImpl(c);
    }
View Full Code Here


   
    private void initializeStatistics() {
        String bytes_str = localStrMgr.getString(BYTE_UNITS);

        // Initialize the MutableCountStatistic for InitialHeapSize
        CountStatistic c = new CountStatisticImpl(
            localStrMgr.getString("monitor.stats.initial_heap_size"), bytes_str,
            localStrMgr.getString("monitor.stats.initial_heap_size_desc"));
        initHeapSize = new MutableCountStatisticImpl(c);
       
        // Initialize the MutableCountStatistic for MaxHeapSize
View Full Code Here

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

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

      assert( r2 != null );
     
    final RangeStatistic r3 = s.getConnRequestWaitTime();
      assert( r3 != null );

      final CountStatistic c1 = s.getNumConnFailedValidation() ;
      assert( c1 != null );
     
      final CountStatistic c2 = s.getNumConnTimedOut();
      assert( c2 != null );
     
    final CountStatistic c3 = s.getWaitQueueLength();
      assert( c3 != null );
     
    final CountStatistic c4  = s.getNumConnCreated();
      assert( c4 != null );
     
    final CountStatistic c5  = s.getNumConnDestroyed();
      assert( c5 != null );
   
    //final CountStatistic c6  = s.getNumConnOpened();
     // assert( c6 != null );
     
    //final CountStatistic c7  = s.getNumConnClosed();
     // assert( c7 != null );
     
    final CountStatistic c8 = s.getAverageConnWaitTime();
      assert( c8 != null );
    }
View Full Code Here

                    m.getWebServiceEndpointAggregateStats();
         
          // verify that we can get each Statistic;
                // there was a problem at one time

                final CountStatistic r1  = s.getTotalFaults();
                assert( r1 != null );
     
                final CountStatistic r2  = s.getTotalNumSuccess() ;
                assert( r2 != null );
     
                //final AverageRangeStatistic r3 = s.getResponseTime();
                //assert( r3 != null );

                final NumberStatistic c1 = s.getThroughput() ;
                assert( c1 != null );
     
                final CountStatistic c2 = s.getTotalAuthFailures();
                assert( c2 != null );
     
                final CountStatistic c3 = s.getTotalAuthSuccesses();
                assert( c3 != null );
     
        }
      }
    }
View Full Code Here

            // verify that we can get each Statistic;
            // there was a problem at one time


            final CountStatistic r1 = s.getTotalFaults();
            assert( r1 != null );
            System.out.println(" total num fault is "+ r1.getCount());

            final CountStatistic r2 = s.getTotalNumSuccess() ;
            assert( r2 != null );
            System.out.println(" total num success is "+ r2.getCount());

            final CountStatistic r3 = s.getAverageResponseTime();
            assert( r3 != null );
            System.out.println("avg resp is "+ r3.getCount());

            final NumberStatistic c1 = s.getThroughput() ;
            assert( c1 != null );
            System.out.println(" through put is "+ c1.getCurrent());

            final CountStatistic c2 = s.getTotalAuthFailures();
            assert( c2 != null );
            System.out.println(" total num auth success is "+ c2.getCount());

            final CountStatistic c3 = s.getTotalAuthSuccesses();
            assert( c3 != null );
            System.out.println(" total num auth failure is "+ c3.getCount());

       }
    }   
View Full Code Here

          final BoundedRangeStatistic b1  = s.getCacheMisses();
          final BoundedRangeStatistic b2  = s.getCacheHits();
          final BoundedRangeStatistic b3  = s.getBeansInCache();
         
          // these were failing
          final CountStatistic c4 = s.getPassivationSuccesses();
          final CountStatistic c3  = s.getExpiredSessionsRemoved();
          final CountStatistic c2  = s.getPassivationErrors();
          final CountStatistic c1  = s.getPassivations();

        }
      }
    }
View Full Code Here

        initializeStatistics();
        baseStatsImpl = new GenericStatsImpl(CLBFrontendStats.class, this);
    }

    private void initializeStatistics() {
        CountStatistic c;
        c = new CountStatisticImpl("TotalIncomingSipRequestsFE");
        totalIncomingSipRequests = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("TotalProxiedSipRequestsFE");
        totalProxiedSipRequests = new MutableCountStatisticImpl(c);
View Full Code Here

        initializeStatistics();
        baseStatsImpl = new GenericStatsImpl(CLBBackendStats.class, this);
    }

    private void initializeStatistics() {
        CountStatistic c;
        c = new CountStatisticImpl("TotalOutgoingSipRequestsBE");
        totalOutgoingSipRequests = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("TotalIncomingSipRequestsBE");
        totalIncomingSipRequests = 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.