org.jboss.management.j2ee.statistics
Class JCAConnectionStatsImpl

java.lang.Object
  extended byorg.jboss.management.j2ee.statistics.StatsBase (src) 
      extended byorg.jboss.management.j2ee.statistics.JCAConnectionStatsImpl
All Implemented Interfaces:
JCAConnectionStats (src) , java.io.Serializable, Stats (src)
Direct Known Subclasses:
JCAConnectionPoolStatsImpl (src)

public class JCAConnectionStatsImpl
extends StatsBase (src)
implements JCAConnectionStats (src)

See Also:
Serialized Form

Constructor Summary
JCAConnectionStatsImpl(java.lang.String cfName, java.lang.String mcfName)
           
JCAConnectionStatsImpl(java.lang.String cfName, java.lang.String mcfName, TimeStatistic (src)  waitTime, TimeStatistic (src)  useTime)
           
 
Method Summary
 java.lang.String getConnectionFactory()
          Returns the associated JCAConnectionFactory OBJECT_NAME
 java.lang.String getManagedConnectionFactory()
          Returns the associated JCAManagedConnectionFactory OBJECT_NAME
 TimeStatistic (src) getUseTime()
          Returns the time spent using a connection
 TimeStatistic (src) getWaitTime()
          Returns the time spent waiting for a connection to be available
 
Methods inherited from class org.jboss.management.j2ee.statistics.StatsBase (src)
addStatistic, getStatistic, getStatisticNames, getStatistics, reset, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Stats (src)
getStatistic, getStatisticNames, getStatistics
 

Constructor Detail

JCAConnectionStatsImpl

public JCAConnectionStatsImpl(java.lang.String cfName,
                              java.lang.String mcfName)

JCAConnectionStatsImpl

public JCAConnectionStatsImpl(java.lang.String cfName,
                              java.lang.String mcfName,
                              TimeStatistic (src)  waitTime,
                              TimeStatistic (src)  useTime)
Method Detail

getConnectionFactory

public java.lang.String getConnectionFactory()
Description copied from interface: JCAConnectionStats (src)
Returns the associated JCAConnectionFactory OBJECT_NAME

Specified by:
getConnectionFactory in interface JCAConnectionStats (src)
Returns:
String the OBJECT_NAME of the managed object that identifies the connection factory for this connection getManagedConnectionFactory

getManagedConnectionFactory

public java.lang.String getManagedConnectionFactory()
Description copied from interface: JCAConnectionStats (src)
Returns the associated JCAManagedConnectionFactory OBJECT_NAME

Specified by:
getManagedConnectionFactory in interface JCAConnectionStats (src)
Returns:
String the OBJECT_NAME of the managed object that identifies the managed connection factory for this connection getWaitTime

getWaitTime

public TimeStatistic (src)  getWaitTime()
Description copied from interface: JCAConnectionStats (src)
Returns the time spent waiting for a connection to be available

Specified by:
getWaitTime in interface JCAConnectionStats (src)

getUseTime

public TimeStatistic (src)  getUseTime()
Description copied from interface: JCAConnectionStats (src)
Returns the time spent using a connection

Specified by:
getUseTime in interface JCAConnectionStats (src)