Package com.sun.appserv.management.monitor

Examples of com.sun.appserv.management.monitor.MonitoringStats


      final Iterator  iter  = monitors.iterator();
     
      int  numMonitors  = 0;
      while ( iter.hasNext() )
      {
        final MonitoringStats ms  = (MonitoringStats)iter.next();
        ++numMonitors;
        nextMonitor( ms );
      }
     
      return numMonitors;
View Full Code Here


 
    public void
  checkMonitoringStats( final ObjectName objectName )
    throws Exception
  {
    final MonitoringStats  mon  = getProxyFactory().getProxy( objectName, MonitoringStats.class);
   
    mon.refresh();
    mon.getStatsInterfaceName();
   
    checkNumStatistics( mon );
   
    checkStatisticNames( mon );
   
View Full Code Here

  checkAllStats( final ObjectName objectName )
    throws InvocationTargetException, IllegalAccessException, NoSuchMethodException
  {
      trace( "checkAllStats: " + objectName );
 
    final MonitoringStats  mon  =
        getProxyFactory().getProxy( objectName, MonitoringStats.class);
   
    final Method[]  methods    = mon.getClass().getMethods();
   
    final Method  specificStatsMethod  = getSpecificStatsGetterMethod( mon );


    // the type of Stats returned from getStats() should be the same as the type
    // returned from the (only) specific getAbcStats()
    final Stats  plainStats  = mon.getStats();
    assert( specificStatsMethod.getReturnType().isAssignableFrom( plainStats.getClass() ) ) :
      "Stats returned from " + objectName + " getStats() should be assignable to " +
        specificStatsMethod.getReturnType().getName();
    checkStats( mon, plainStats );
   
View Full Code Here

  {
      //trace( "testStatsClassSuppliesAllStatistics: " + objectName);
     
      try
      {
    final MonitoringStats  mon  = getProxyFactory().getProxy( objectName, MonitoringStats.class);
   
    final Method  m  = getSpecificStatsGetterMethod( mon );
    final Stats    stats  = (Stats)m.invoke( mon, (Object[])null );
    final Method[]  methodsViaIntrospection  = J2EEUtil.getStatisticGetterMethodsUsingIntrospection( stats );
    final Method[]  methodsViaNames  = J2EEUtil.getStatisticGetterMethodsUsingNames( stats );
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.monitor.MonitoringStats

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.