com.sun.enterprise.admin.monitor.stats
Interface EJBCacheStats

All Superinterfaces:
Stats

public interface EJBCacheStats
extends Stats

A Stats interface to represent the statistics exposed by the Enterprise Bean Cache. This is based on the statistics that were exposed in S1AS7.0. An implementation of EJB Cache should provide statistical data by implementing this interface.

Since:
S1AS8.0
Version:
1.0
Author:
Muralidhar Vempaty, Kedar Mhaswade

Method Summary
 BoundedRangeStatistic getCacheHits()
          Returns the number of times a user request hits an EJB in associated EJB cache instance, as a CountStatistic.
 BoundedRangeStatistic getCacheMisses()
          Returns the number of times a user request fails to find an EJB in associated EJB cache instance, as a CountStatistic.
 BoundedRangeStatistic getNumBeansInCache()
          Returns total number of EJBs in the associated EJB Cache, as a BoundedRangeStatistic.
 CountStatistic getNumExpiredSessionsRemoved()
          Returns the number of removed Expired Sessions as a CountStatistic.
 CountStatistic getNumPassivationErrors()
          Returns the number of errors in passivating a Stateful Session Bean, as a CountStatistic.
 CountStatistic getNumPassivations()
          Returns the number of passivations of a Stateful Session Bean, as a CountStatistic.
 CountStatistic getNumPassivationSuccess()
          Returns the number of errors in passivating a Stateful Session Bean, as a CountStatistic.
 
Methods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Method Detail

getCacheMisses

BoundedRangeStatistic getCacheMisses()
Returns the number of times a user request fails to find an EJB in associated EJB cache instance, as a CountStatistic.

Returns:
an instance of BoundedRangeStatistic

getCacheHits

BoundedRangeStatistic getCacheHits()
Returns the number of times a user request hits an EJB in associated EJB cache instance, as a CountStatistic.

Returns:
an instance of BoundedRangeStatistic

getNumBeansInCache

BoundedRangeStatistic getNumBeansInCache()
Returns total number of EJBs in the associated EJB Cache, as a BoundedRangeStatistic. Note that this returns the various statistical values like maximum and minimum value attained as a part of the return value.

Returns:
an instance of BoundedRangeStatistic

getNumPassivations

CountStatistic getNumPassivations()
Returns the number of passivations of a Stateful Session Bean, as a CountStatistic.

Returns:
an instance of CountStatistic

getNumPassivationErrors

CountStatistic getNumPassivationErrors()
Returns the number of errors in passivating a Stateful Session Bean, as a CountStatistic. Must be less than or equal to getNumPassivations()

Returns:
an instance of CountStatistic

getNumExpiredSessionsRemoved

CountStatistic getNumExpiredSessionsRemoved()
Returns the number of removed Expired Sessions as a CountStatistic.

Returns:
an instance of CountStatistic

getNumPassivationSuccess

CountStatistic getNumPassivationSuccess()
Returns the number of errors in passivating a Stateful Session Bean, as a CountStatistic. Must be less than or equal to getNumPassivations()

Returns:
an instance of CountStatistic


Copyright © 2012. All Rights Reserved.