public StatefulSessionBeanStatsProvider(StatefulSessionContainer delegate, long beanId, String appName, String moduleName, String beanName) { super(beanId, appName, moduleName, beanName); long now = System.currentTimeMillis(); methodReadyStat = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxCacheSize(), 0, "MethodReadyCount", "count", "Number of stateful session beans in MethodReady state", now, now); passiveCount = new BoundedRangeStatisticImpl( 0, 0, 0, Long.MAX_VALUE, 0, "PassiveCount", "count", "Number of stateful session beans in Passive state", now, now); }
@ManagedAttribute(id="methodreadycount") @Description( "Number of stateful session beans in MethodReady state") public RangeStatistic getMethodReadyCount() { methodReadyStat.setCurrent(methodReadyCount); return methodReadyStat.getStatistic(); }
@ManagedAttribute(id="methodreadycount") @Description( "Number of stateful session beans in MethodReady state") public RangeStatistic getMethodReadyCount() { methodReadyStat.setCurrent(methodReadyCount.get()); return methodReadyStat; }
@ManagedAttribute(id="passivecount") @Description( "Number of stateful session beans in Passive state") public RangeStatistic getPassiveCount() { passiveCount.setCurrent(passivations.get()); return passiveCount; }
@ManagedAttribute(id="passivecount") @Description( "Number of stateful session beans in Passive state") public RangeStatistic getPassiveCount() { passiveCount.setCurrent(delegate.getPassiveCount()); return passiveCount.getStatistic(); }
public StatefulSessionBeanStatsProvider(StatefulSessionContainer delegate, long beanId, String appName, String moduleName, String beanName) { super(beanId, appName, moduleName, beanName); this.delegate = delegate; long now = System.currentTimeMillis(); methodReadyStat = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxCacheSize(), 0, "MethodReadyCount", "count", "Number of stateful session beans in MethodReady state", now, now); passiveCount = new BoundedRangeStatisticImpl( 0, 0, 0, Long.MAX_VALUE, 0, "PassiveCount", "count", "Number of stateful session beans in Passive state", now, now); }
@ManagedAttribute(id="methodreadycount") @Description( "Number of stateless session beans in MethodReady state") public RangeStatistic getMethodReadyCount() { methodReadyCount.setCurrent(delegate.getMethodReadyCount()); return methodReadyCount; }
@ManagedAttribute(id="numthreadswaiting") @Description( "Number of threads waiting for free beans") public RangeStatistic getNumThreadsWaiting() { threadsWaiting.setCurrent(delegate.getNumThreadsWaiting()); return threadsWaiting.getStatistic(); }
public EjbCacheStatsProvider(EJBCacheStatsProvider delegate, long beanId, String appName, String moduleName, String beanName) { this.delegate = delegate; this.beanId = beanId; this.appName = appName; this.moduleName = moduleName; this.beanName = beanName; long now = System.currentTimeMillis(); numBeans = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxCacheSize(), 0, "NumBeansInCache", "count", "Provides total number of EJBs in the associated EJB Cache.", now, now); cacheHits = new BoundedRangeStatisticImpl( 0, 0, 0, Long.MAX_VALUE, 0, "CacheHits", "count", "Provides the number of times a user request hits an EJB in associated EJB cache instance", now, now); cacheMisses = new BoundedRangeStatisticImpl( 0, 0, 0, Long.MAX_VALUE, 0, "CacheMisses", "count", "Provides the number of times a user request fails to find an EJB in associated EJB cache instance", now, now); }
@ManagedAttribute(id="cachehits") @Description( "Number of times a user request hits an EJB in associated EJB cache instance") public RangeStatistic getCacheHits() { cacheHits.setCurrent(delegate.getCacheHits()); return cacheHits; }
@ManagedAttribute(id="numbeansincache") @Description( "Number of EJBs in the associated EJB Cache") public RangeStatistic getNumBeansInCache() { numBeans.setCurrent(delegate.getNumBeansInCache()); return numBeans.getStatistic(); }
public EjbCacheStatsProvider(EjbCacheStatsProviderDelegate delegate, long beanId, String appName, String moduleName, String beanName) { this.delegate = delegate; this.beanId = beanId; this.appName = appName; this.moduleName = moduleName; this.beanName = beanName; long now = System.currentTimeMillis(); numBeans = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxCacheSize(), 0, "NumBeansInCache", "count", "Provides total number of EJBs in the associated EJB Cache.", now, now); cacheHits = new BoundedRangeStatisticImpl( 0, 0, 0, Long.MAX_VALUE, 0, "CacheHits", "count", "Provides the number of times a user request hits an EJB in associated EJB cache instance", now, now); cacheMisses = new BoundedRangeStatisticImpl( 0, 0, 0, Long.MAX_VALUE, 0, "CacheMisses", "count", "Provides the number of times a user request fails to find an EJB in associated EJB cache instance", now, now); }
@ManagedAttribute(id="numthreadswaiting") @Description( "Number of threads waiting for free beans") public RangeStatistic getNumThreadsWaiting() { threadsWaiting.setCurrent(delegate.getNumThreadsWaiting()); return threadsWaiting; }
@ManagedAttribute(id="cachemisses") @Description( "Number of times a user request fails to find an EJB in associated EJB cache instance") public RangeStatistic getCacheMisses() { cacheMisses.setCurrent(delegate.getCacheMisses()); return cacheMisses.getStatistic(); }
public EntityBeanStatsProvider(EntityContainer delegate, long beanId, String appName, String moduleName, String beanName) { super(beanId, appName, moduleName, beanName); this.delegate = delegate; long now = System.currentTimeMillis(); pooledCount = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxPoolSize(), delegate.getSteadyPoolSize(), "PooledCount", "count", "Number of entity beans in pooled state", now, now); readyCount = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxCacheSize(), 0, "ReadyCount", "count", "Number of entity beans in ready state", now, now); }
@ManagedAttribute(id="numbeansincache") @Description( "Number of EJBs in the associated EJB Cache") public RangeStatistic getNumBeansInCache() { numBeans.setCurrent(delegate.getNumBeansInCache()); return numBeans; }
@ManagedAttribute @Description("Total number of work items in the queue") public synchronized BoundedRangeStatistic getNumberOfWorkItemsInQueue() { int totWorkItemsInQueue = workQueue.workItemsInQueue(); numberOfWorkItemsInQueue.setCurrent(totWorkItemsInQueue); return (BoundedRangeStatistic) numberOfWorkItemsInQueue.getStatistic(); }
public StatelessSessionBeanStatsProvider(StatelessSessionContainer delegate, long beanId, String appName, String moduleName, String beanName) { super(beanId, appName, moduleName, beanName); this.delegate = delegate; long now = System.currentTimeMillis(); methodReadyCount = new BoundedRangeStatisticImpl( 0, 0, 0, delegate.getMaxPoolSize(), delegate.getSteadyPoolSize(), "MethodReadyCount", "count", "Number of stateless session beans in MethodReady state", now, now); }
@ManagedAttribute(id="cachemisses") @Description( "Number of times a user request fails to find an EJB in associated EJB cache instance") public RangeStatistic getCacheMisses() { cacheMisses.setCurrent(delegate.getCacheMisses()); return cacheMisses; }
@ManagedAttribute(id="pooledcount") @Description( "Number of entity beans in pooled state") public RangeStatistic getPooledCount() { pooledCount.setCurrent(delegate.getPooledCount()); return pooledCount.getStatistic(); }