Package com.sun.appserv.management.j2ee.statistics

Examples of com.sun.appserv.management.j2ee.statistics.MapStatistic


      // translate the names to be the ones we expose in MBeanInfo
      for( int i = 0; i < statistics.length; ++i )
      {
        final Statistic  origStatistic  = statistics[ i ];
     
        final MapStatistic  m  = new MapStatisticImpl( origStatistic );
       
        final String  convertedName  = originalToDerivedStatisticName( origStatistic.getName() );
        if ( ! convertedName.equals( origStatistic.getName() ) )
        {
          m.setName( convertedName );
        }
       
        final Class<? extends Statistic> theClass  =
            StatisticFactory.getInterface( origStatistic );
        assert( theClass != null );
       
        // this will create one which implements the requisite interfaces
        statistics[ i = StatisticFactory.create( theClass, m.asMap() );
       
        assert( theClass.isAssignableFrom( statistics[ i ].getClass() ));
      }
     
      return( statistics );
View Full Code Here


            final Statistic[] statistics = getStatisticsFromImplRaw(customStatsImpl);
            // translate the names to be the ones we expose in MBeanInfo
            for(int i = 0; i < statistics.length; ++i) {
                final Statistic  origStatistic  = statistics[i];

                final MapStatistic  m  = new MapStatisticImpl(origStatistic);

                final String  convertedName  = originalToDerivedStatisticName(origStatistic.getName());
                if (! convertedName.equals(origStatistic.getName()))
                        m.setName(convertedName);

                final Class<? extends Statistic> theClass =
                    StatisticFactory.getInterface(origStatistic);
                assert(theClass != null);

                // this will create one which implements the requisite interfaces
                statistics[ i = StatisticFactory.create(theClass, m.asMap());

                assert(theClass.isAssignableFrom(statistics[ i ].getClass()));
            }
            return(statistics);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.j2ee.statistics.MapStatistic

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.