Java EE 5 SDK

com.sun.appserv.management.j2ee.statistics
Class StatsFactory

java.lang.Object
  extended by com.sun.appserv.management.j2ee.statistics.StatsFactory

public final class StatsFactory
extends Object

Factory to create Stats subclasses of any kind, based on supplied interface type and a Map or CompositeData containing the Statistics.


Method Summary
static Map<String,Statistic> compositeDataToMap(CompositeData data)
           
static Stats create(Class<? extends Stats> theInterface, CompositeData data)
          Create a new Stats using the specified CompositeData
static EJBStats createEJBStats(Map<String,Statistic> statistics)
           
static EntityBeanStats createEntityBeanStats(Map<String,Statistic> statistics)
           
static JavaMailStats createJavaMailStats(Map<String,Statistic> statistics)
           
static JCAConnectionPoolStats createJCAConnectionPoolStats(Map<String,Statistic> statistics)
           
static JCAConnectionStats createJCAConnectionStats(Map<String,Statistic> statistics)
           
static JCAStats createJCAStats(Map<String,Statistic> statistics)
           
static JDBCConnectionPoolStats createJDBCConnectionPoolStats(Map<String,Statistic> statistics)
           
static JDBCConnectionStats createJDBCConnectionStats(Map<String,Statistic> statistics)
           
static JDBCStats createJDBCStats(Map<String,Statistic> statistics)
           
static JMSConnectionStats createJMSConnectionStats(Map<String,Statistic> statistics)
           
static JMSConsumerStats createJMSConsumerStats(Map<String,Statistic> statistics)
           
static JMSEndpointStats createJMSEndpointStats(Map<String,Statistic> statistics)
           
static JMSProducerStats createJMSProducerStats(Map<String,Statistic> statistics)
           
static JMSSessionStats createJMSSessionStats(Map<String,Statistic> statistics)
           
static JMSStats createJMSStats(Map<String,Statistic> statistics)
           
static JTAStats createJTAStats(Map<String,Statistic> statistics)
           
static JVMStats createJVMStats(Map<String,Statistic> statistics)
           
static MessageDrivenBeanStats createMessageDrivenBeanStats(Map<String,Statistic> statistics)
           
static ServletStats createServletStats(Map<String,Statistic> statistics)
           
static SessionBeanStats createSessionBeanStats(Map<String,Statistic> statistics)
           
static StatefulSessionBeanStats createStatefulSessionBeanStats(Map<String,Statistic> statistics)
           
static StatelessSessionBeanStats createStatelessSessionBeanStats(Map<String,Statistic> statistics)
           
static
<T extends Stats>
T
createStats(Class<T> theInterface, Map<String,Statistic> statistics)
          Create a new Stats using the specified Map.
static
<T extends Stats>
T
createStats(Class<T> theInterface, Statistic[] statistics)
          Calls createStats( theInterface, J2EEUtil.statisticsToMap( statistics ) )
static Stats createStats(CompositeData data)
          Create a Stats using Stats class found as data.getCompositeType().getTypeName().
static URLStats createURLStats(Map<String,Statistic> statistics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Stats create(Class<? extends Stats> theInterface,
                           CompositeData data)
Create a new Stats using the specified CompositeData

Parameters:
theInterface - interface which the Stats should implement, must extend Stats

compositeDataToMap

public static Map<String,Statistic> compositeDataToMap(CompositeData data)

createStats

public static Stats createStats(CompositeData data)
Create a Stats using Stats class found as data.getCompositeType().getTypeName(). If this interface is not available, a generic Stats interface will be used.


createStats

public static <T extends Stats> T createStats(Class<T> theInterface,
                                              Map<String,Statistic> statistics)
Create a new Stats using the specified Map. The standard JSR 77 Statistic types are handled appropriately. Custom (non-standard) Stats may also be used; in this case a proxy is returned which implements the interface specified by theClass.

Parameters:
theInterface - the Stats sub-interface which the resulting should implement
statistics - a Map containing keys of type String and their Statistic values

createStats

public static <T extends Stats> T createStats(Class<T> theInterface,
                                              Statistic[] statistics)
Calls createStats( theInterface, J2EEUtil.statisticsToMap( statistics ) )


createEJBStats

public static EJBStats createEJBStats(Map<String,Statistic> statistics)

createURLStats

public static URLStats createURLStats(Map<String,Statistic> statistics)

createEntityBeanStats

public static EntityBeanStats createEntityBeanStats(Map<String,Statistic> statistics)

createJCAConnectionPoolStats

public static JCAConnectionPoolStats createJCAConnectionPoolStats(Map<String,Statistic> statistics)

createJCAConnectionStats

public static JCAConnectionStats createJCAConnectionStats(Map<String,Statistic> statistics)

createJCAStats

public static JCAStats createJCAStats(Map<String,Statistic> statistics)

createJDBCConnectionPoolStats

public static JDBCConnectionPoolStats createJDBCConnectionPoolStats(Map<String,Statistic> statistics)

createJDBCConnectionStats

public static JDBCConnectionStats createJDBCConnectionStats(Map<String,Statistic> statistics)

createJDBCStats

public static JDBCStats createJDBCStats(Map<String,Statistic> statistics)

createJMSConnectionStats

public static JMSConnectionStats createJMSConnectionStats(Map<String,Statistic> statistics)

createJMSConsumerStats

public static JMSConsumerStats createJMSConsumerStats(Map<String,Statistic> statistics)

createJMSEndpointStats

public static JMSEndpointStats createJMSEndpointStats(Map<String,Statistic> statistics)

createJMSProducerStats

public static JMSProducerStats createJMSProducerStats(Map<String,Statistic> statistics)

createJMSSessionStats

public static JMSSessionStats createJMSSessionStats(Map<String,Statistic> statistics)

createJMSStats

public static JMSStats createJMSStats(Map<String,Statistic> statistics)

createJTAStats

public static JTAStats createJTAStats(Map<String,Statistic> statistics)

createJVMStats

public static JVMStats createJVMStats(Map<String,Statistic> statistics)

createMessageDrivenBeanStats

public static MessageDrivenBeanStats createMessageDrivenBeanStats(Map<String,Statistic> statistics)

createServletStats

public static ServletStats createServletStats(Map<String,Statistic> statistics)

createSessionBeanStats

public static SessionBeanStats createSessionBeanStats(Map<String,Statistic> statistics)

createStatefulSessionBeanStats

public static StatefulSessionBeanStats createStatefulSessionBeanStats(Map<String,Statistic> statistics)

createStatelessSessionBeanStats

public static StatelessSessionBeanStats createStatelessSessionBeanStats(Map<String,Statistic> statistics)

createJavaMailStats

public static JavaMailStats createJavaMailStats(Map<String,Statistic> statistics)

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.