Search in sources :

Example 1 with EjbCacheStatsProvider

use of com.sun.ejb.monitoring.stats.EjbCacheStatsProvider in project Payara by payara.

the class ActiveTxCache method registerMonitorableComponents.

@Override
protected void registerMonitorableComponents() {
    super.registerMonitorableComponents();
    if (readyStore != null) {
        int confMaxCacheSize = cacheProp.maxCacheSize;
        if (confMaxCacheSize <= 0) {
            confMaxCacheSize = Integer.MAX_VALUE;
        }
        this.cacheStatsProvider = new EntityCacheStatsProvider((BaseCache) readyStore, confMaxCacheSize);
        // registryMediator.registerProvider(cacheStatsProvider);
        cacheProbeListener = new EjbCacheStatsProvider(cacheStatsProvider, getContainerId(), containerInfo.appName, containerInfo.modName, containerInfo.ejbName);
        cacheProbeListener.register();
    }
    poolProbeListener = new EjbPoolStatsProvider(entityCtxPool, getContainerId(), containerInfo.appName, containerInfo.modName, containerInfo.ejbName);
    poolProbeListener.register();
    _logger.log(Level.FINE, "[Entity Container] registered monitorable");
}
Also used : EjbPoolStatsProvider(com.sun.ejb.monitoring.stats.EjbPoolStatsProvider) EjbCacheStatsProvider(com.sun.ejb.monitoring.stats.EjbCacheStatsProvider) BaseCache(com.sun.appserv.util.cache.BaseCache)

Aggregations

BaseCache (com.sun.appserv.util.cache.BaseCache)1 EjbCacheStatsProvider (com.sun.ejb.monitoring.stats.EjbCacheStatsProvider)1 EjbPoolStatsProvider (com.sun.ejb.monitoring.stats.EjbPoolStatsProvider)1