FileDocCategorySizeDatePackage
ConnectorEndPointFactoryStatsImpl.javaAPI DocGlassfish v2 API5405Fri May 04 22:34:24 BST 2007com.sun.enterprise.connectors.inflow.monitor

ConnectorEndPointFactoryStatsImpl

public final class ConnectorEndPointFactoryStatsImpl extends com.sun.enterprise.resource.monitor.AbstractStatsImpl implements com.sun.enterprise.admin.monitor.stats.ConnectorEndPointFactoryStats
This class provides an implementation of the JDBCConnectionPoolStats interface. The implementations of the interface methods primarily delegate the task of statistic gathering to the work-manager of the inbound resource adapter
author
Sivakumar Thyagarajan

Fields Summary
private static final Logger
_logger
private com.sun.enterprise.admin.monitor.stats.GenericStatsImpl
gsImpl
private javax.management.j2ee.statistics.CountStatistic
endPointsCreatedCount
private javax.management.j2ee.statistics.CountStatistic
messagesDeliveredCount
private javax.management.j2ee.statistics.CountStatistic
runTimeExceptionsCount
Constructors Summary
public ConnectorEndPointFactoryStatsImpl()


    //@discuss: should this be for a bean-id combination?
      
        initializeStatistics();
        try {
            gsImpl = new GenericStatsImpl(
            this.getClass().getInterfaces()[0].getName(), this );
            } catch( ClassNotFoundException cnfe ) {
            //@todo:add to reosurces file
                _logger.log( Level.INFO, "endpointfacmon.cnfe", "GenericStatsImpl" );
            }
    
Methods Summary
public javax.management.j2ee.statistics.CountStatisticgetDeliveredMessageCount()

        //@todo to implement
        return null;
    
public javax.management.j2ee.statistics.CountStatisticgetMessagesCreatedCount()

        //@todo to implement
        return null;
    
public javax.management.j2ee.statistics.CountStatisticgetRuntimeExceptionsCount()

        //@todo to implement
        return null;
    
private voidinitializeStatistics()

        long time = System.currentTimeMillis();
        CountStatistic cs = null;
    
        cs = new CountStatisticImpl(0,
            "endPointsCreated", "", 
        "The number of endpoints created using this endpoint factory"
            ,time, time);
        endPointsCreatedCount = new MutableCountStatisticImpl( cs );

        cs = new CountStatisticImpl(0, "messagesDelivered", "", 
                    "The number of messages delivered to endpoints created using this " +
                    "endpoint factory",time, time);
        messagesDeliveredCount = new MutableCountStatisticImpl( cs );

        cs = new CountStatisticImpl(0, "runtimeExceptionCount", "", 
                    "The number of runtime exceptions thown by endpoints created" +
                    "by this end point factory",time, time);
        runTimeExceptionsCount = new MutableCountStatisticImpl( cs );