com.sun.ejb.base.stats
Class HAStatefulSessionStoreStatsImpl

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

public class HAStatefulSessionStoreStatsImpl
extends StatefulSessionStoreStatsImpl
implements HAStatefulSessionStoreStats

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
HAStatefulSessionStoreStatsImpl(MonitorableSFSBStoreManager provider)
           
 
Method Summary
protected  void appendStats(StringBuffer sbuf)
           
 CountStatistic getCheckpointCount()
          Returns the total number of sessions checkpointed into the store
 AverageRangeStatistic getCheckpointedBeanSize()
          Returns the number of bytes checkpointed
 CountStatistic getCheckpointErrorCount()
          Returns the total number of sessions that couldn't be Checkpointed into the store
 CountStatistic getCheckpointSuccessCount()
          Returns the total number of sessions successfully Checkpointed into the store
 AverageRangeStatistic getCheckpointTime()
          Returns the time spent on passivating beans to the store including total, min, max
 void incrementCheckpointCount(boolean success)
           
protected  void initialize()
           
 void setCheckpointSize(long val)
           
 void setCheckpointTime(long val)
           
 
Methods inherited from class com.sun.ejb.base.stats.StatefulSessionStoreStatsImpl
appendTimeStatistic, getActivatedBeanSize, getActivationCount, getActivationErrorCount, getActivationSuccessCount, getActivationTime, getCurrentSize, getExpiredSessionCount, getPassivatedBeanSize, getPassivationCount, getPassivationErrorCount, getPassivationSuccessCount, getPassivationTime
 
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 com.sun.enterprise.admin.monitor.stats.StatefulSessionStoreStats
getActivatedBeanSize, getActivationCount, getActivationErrorCount, getActivationSuccessCount, getActivationTime, getCurrentSize, getExpiredSessionCount, getPassivatedBeanSize, getPassivationCount, getPassivationErrorCount, getPassivationSuccessCount, getPassivationTime
 
Methods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Constructor Detail

HAStatefulSessionStoreStatsImpl

public HAStatefulSessionStoreStatsImpl(MonitorableSFSBStoreManager provider)
Method Detail

initialize

protected void initialize()
Overrides:
initialize in class StatefulSessionStoreStatsImpl

getCheckpointCount

public CountStatistic getCheckpointCount()
Returns the total number of sessions checkpointed into the store

Specified by:
getCheckpointCount in interface HAStatefulSessionStoreStats

getCheckpointSuccessCount

public CountStatistic getCheckpointSuccessCount()
Returns the total number of sessions successfully Checkpointed into the store

Specified by:
getCheckpointSuccessCount in interface HAStatefulSessionStoreStats

getCheckpointErrorCount

public CountStatistic getCheckpointErrorCount()
Returns the total number of sessions that couldn't be Checkpointed into the store

Specified by:
getCheckpointErrorCount in interface HAStatefulSessionStoreStats

getCheckpointedBeanSize

public AverageRangeStatistic getCheckpointedBeanSize()
Returns the number of bytes checkpointed

Specified by:
getCheckpointedBeanSize in interface HAStatefulSessionStoreStats

getCheckpointTime

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

Specified by:
getCheckpointTime in interface HAStatefulSessionStoreStats

incrementCheckpointCount

public void incrementCheckpointCount(boolean success)

setCheckpointSize

public void setCheckpointSize(long val)

setCheckpointTime

public void setCheckpointTime(long val)

appendStats

protected void appendStats(StringBuffer sbuf)
Overrides:
appendStats in class StatefulSessionStoreStatsImpl


Copyright © 2012 GlassFish Community. All Rights Reserved.