Package com.sun.ejb.monitoring.stats
Class EjbCacheStatsProvider
- java.lang.Object
-
- com.sun.ejb.monitoring.stats.EjbCacheStatsProvider
-
@AMXMetadata(type="bean-cache-mon", group="monitoring", isSingleton=false) @ManagedObject @Description("Bean Cache Statistics") public class EjbCacheStatsProvider extends Object
Probe listener for the Ejb Cache monitoring events.- Author:
- Marina Vatkina
-
-
Constructor Summary
Constructors Constructor Description EjbCacheStatsProvider(EjbCacheStatsProviderDelegate delegate, long beanId, String appName, String moduleName, String beanName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ejbBeanPassivatedEvent(long beanId, String appName, String modName, String ejbName, boolean success)
void
ejbExpiredSessionsRemovedEvent(long beanId, String appName, String modName, String ejbName, long num)
org.glassfish.external.statistics.RangeStatistic
getCacheHits()
org.glassfish.external.statistics.RangeStatistic
getCacheMisses()
org.glassfish.external.statistics.RangeStatistic
getNumBeansInCache()
org.glassfish.external.statistics.CountStatistic
getNumExpiredSessionsRemoved()
org.glassfish.external.statistics.CountStatistic
getNumPassivationErrors()
org.glassfish.external.statistics.CountStatistic
getNumPassivations()
org.glassfish.external.statistics.CountStatistic
getNumPassivationSuccess()
void
register()
void
unregister()
-
-
-
Constructor Detail
-
EjbCacheStatsProvider
public EjbCacheStatsProvider(EjbCacheStatsProviderDelegate delegate, long beanId, String appName, String moduleName, String beanName)
-
-
Method Detail
-
register
public void register()
-
unregister
public void unregister()
-
getCacheMisses
@ManagedAttribute(id="cachemisses") @Description("Number of times a user request fails to find an EJB in associated EJB cache instance") public org.glassfish.external.statistics.RangeStatistic getCacheMisses()
-
getCacheHits
@ManagedAttribute(id="cachehits") @Description("Number of times a user request hits an EJB in associated EJB cache instance") public org.glassfish.external.statistics.RangeStatistic getCacheHits()
-
getNumBeansInCache
@ManagedAttribute(id="numbeansincache") @Description("Number of EJBs in the associated EJB Cache") public org.glassfish.external.statistics.RangeStatistic getNumBeansInCache()
-
getNumExpiredSessionsRemoved
@ManagedAttribute(id="numexpiredsessionsremoved") @Description("Number of expired sessions removed by the cleanup thread.") public org.glassfish.external.statistics.CountStatistic getNumExpiredSessionsRemoved()
-
getNumPassivations
@ManagedAttribute(id="numpassivations") @Description("Number of passivated beans") public org.glassfish.external.statistics.CountStatistic getNumPassivations()
-
getNumPassivationErrors
@ManagedAttribute(id="numpassivationerrors") @Description("Number of errors during passivation.") public org.glassfish.external.statistics.CountStatistic getNumPassivationErrors()
-
getNumPassivationSuccess
@ManagedAttribute(id="numpassivationsuccess") @Description("Number of times passivation completed successfully.") public org.glassfish.external.statistics.CountStatistic getNumPassivationSuccess()
-
ejbBeanPassivatedEvent
public void ejbBeanPassivatedEvent(long beanId, String appName, String modName, String ejbName, boolean success)
-
-