com.sun.ejb.base.stats
Class StatefulSessionStoreStatsImpl

java.lang.Object
  extended by com.sun.ejb.base.stats.StatsImpl
      extended by com.sun.ejb.base.stats.StatefulSessionStoreStatsImpl
All Implemented Interfaces:
StatefulSessionStoreStats, Stats
Direct Known Subclasses:
HAStatefulSessionStoreStatsImpl

public class StatefulSessionStoreStatsImpl
extends StatsImpl
implements StatefulSessionStoreStats

Implementation of StatefulSessionStoreStats There is once instance of this class per StatefulEJBContainer

Author:
Mahesh Kannan

Field Summary
 
Fields inherited from class com.sun.ejb.base.stats.StatsImpl
_logger, monitorOn, registered
 
Constructor Summary
  StatefulSessionStoreStatsImpl(MonitorableSFSBStoreManager provider)
           
protected StatefulSessionStoreStatsImpl(MonitorableSFSBStoreManager provider, java.lang.String intfName)
           
 
Method Summary
protected  void appendStats(java.lang.StringBuffer sbuf)
           
protected static void appendTimeStatistic(java.lang.StringBuffer sbuf, java.lang.String name, MutableAverageRangeStatisticImpl stat)
           
 AverageRangeStatistic getActivatedBeanSize()
          Returns the total number of bytes activated by this store including total, min, maximum
 CountStatistic getActivationCount()
          Returns the total number of sessions activated from the store
 CountStatistic getActivationErrorCount()
          Returns the total number of sessions that couldn't be Activated from the store
 CountStatistic getActivationSuccessCount()
          Returns the total number of sessions successfully Activated from the store
 AverageRangeStatistic getActivationTime()
          Returns the time spent on activating beans from the store including total, min, max
 RangeStatistic getCurrentSize()
          Returns the number of passivated / checkpointed sessions in the store
 CountStatistic getExpiredSessionCount()
          Returns the total number of expired sessions that were removed by this store
 AverageRangeStatistic getPassivatedBeanSize()
          Returns the total number of bytes passivated by this store including total, min, maximum
 CountStatistic getPassivationCount()
          Returns the total number of sessions passivated using this store
 CountStatistic getPassivationErrorCount()
          Returns the total number of sessions that couldn't be Passivated using the store
 CountStatistic getPassivationSuccessCount()
          Returns the total number of sessions successfully Passivated using the store
 AverageRangeStatistic getPassivationTime()
          Returns the time spent on passivating beans to the store including total, min, max
protected  void initialize()
           
 
Methods inherited from class com.sun.ejb.base.stats.StatsImpl
getStatistic, getStatisticNames, getStatistics, initialize, statToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Constructor Detail

StatefulSessionStoreStatsImpl

public StatefulSessionStoreStatsImpl(MonitorableSFSBStoreManager provider)

StatefulSessionStoreStatsImpl

protected StatefulSessionStoreStatsImpl(MonitorableSFSBStoreManager provider,
                                        java.lang.String intfName)
Method Detail

initialize

protected void initialize()

getCurrentSize

public RangeStatistic getCurrentSize()
Returns the number of passivated / checkpointed sessions in the store

Specified by:
getCurrentSize in interface StatefulSessionStoreStats

getActivationCount

public CountStatistic getActivationCount()
Returns the total number of sessions activated from the store

Specified by:
getActivationCount in interface StatefulSessionStoreStats

getActivationSuccessCount

public CountStatistic getActivationSuccessCount()
Returns the total number of sessions successfully Activated from the store

Specified by:
getActivationSuccessCount in interface StatefulSessionStoreStats

getActivationErrorCount

public CountStatistic getActivationErrorCount()
Returns the total number of sessions that couldn't be Activated from the store

Specified by:
getActivationErrorCount in interface StatefulSessionStoreStats

getPassivationCount

public CountStatistic getPassivationCount()
Returns the total number of sessions passivated using this store

Specified by:
getPassivationCount in interface StatefulSessionStoreStats

getPassivationSuccessCount

public CountStatistic getPassivationSuccessCount()
Returns the total number of sessions successfully Passivated using the store

Specified by:
getPassivationSuccessCount in interface StatefulSessionStoreStats

getPassivationErrorCount

public CountStatistic getPassivationErrorCount()
Returns the total number of sessions that couldn't be Passivated using the store

Specified by:
getPassivationErrorCount in interface StatefulSessionStoreStats

getExpiredSessionCount

public CountStatistic getExpiredSessionCount()
Returns the total number of expired sessions that were removed by this store

Specified by:
getExpiredSessionCount in interface StatefulSessionStoreStats

getActivatedBeanSize

public AverageRangeStatistic getActivatedBeanSize()
Returns the total number of bytes activated by this store including total, min, maximum

Specified by:
getActivatedBeanSize in interface StatefulSessionStoreStats

getActivationTime

public AverageRangeStatistic getActivationTime()
Returns the time spent on activating beans from the store including total, min, max

Specified by:
getActivationTime in interface StatefulSessionStoreStats

getPassivatedBeanSize

public AverageRangeStatistic getPassivatedBeanSize()
Returns the total number of bytes passivated by this store including total, min, maximum

Specified by:
getPassivatedBeanSize in interface StatefulSessionStoreStats

getPassivationTime

public AverageRangeStatistic getPassivationTime()
Returns the time spent on passivating beans to the store including total, min, max

Specified by:
getPassivationTime in interface StatefulSessionStoreStats

appendStats

protected void appendStats(java.lang.StringBuffer sbuf)

appendTimeStatistic

protected static void appendTimeStatistic(java.lang.StringBuffer sbuf,
                                          java.lang.String name,
                                          MutableAverageRangeStatisticImpl stat)


Copyright © 2012 GlassFish Community. All Rights Reserved.