public StatisticsImpl(SessionFactoryImplementor sessionFactory) { clear(); this.sessionFactory = sessionFactory; }
public synchronized void removeCollection(String role) { collectionRemoveCount++; getCollectionStatistics(role).removeCount++; }
public synchronized void deleteEntity(String entityName) { entityDeleteCount++; EntityStatistics es = getEntityStatistics(entityName); es.deleteCount++; }
public synchronized void queryCachePut(String hql, String regionName) { queryCachePutCount++; if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.cachePutCount++; } SecondLevelCacheStatistics slcs = getSecondLevelCacheStatistics(regionName); slcs.putCount++; }
public synchronized void secondLevelCachePut(String regionName) { secondLevelCachePutCount++; getSecondLevelCacheStatistics(regionName).putCount++; }
/** * Useful to init this MBean wo a JNDI session factory name * * @param sf session factory to register */ public void setSessionFactory(SessionFactory sf) { this.sf = sf; if (sf == null) { stats = new StatisticsImpl(); } else { stats = sf.getStatistics(); } } /**
public synchronized void queryExecuted(String hql, int rows, long time) { queryExecutionCount++; if (queryExecutionMaxTime<time) queryExecutionMaxTime=time; if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.executed(rows, time); } }
public synchronized void queryCacheMiss(String hql, String regionName) { queryCacheMissCount++; if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.cacheMissCount++; } SecondLevelCacheStatistics slcs = getSecondLevelCacheStatistics(regionName); slcs.missCount++; }
public synchronized void secondLevelCacheMiss(String regionName) { secondLevelCacheMissCount++; getSecondLevelCacheStatistics(regionName).missCount++; }
/** * Useful to init this MBean wo a JNDI session factory name * * @param sf session factory to register */ public void setSessionFactory(SessionFactory sf) { this.sf = sf; if (sf == null) { stats = new StatisticsImpl(); } else { stats = sf.getStatistics(); } } /**
public synchronized void queryExecuted(String hql, int rows, long time) { queryExecutionCount++; if (queryExecutionMaxTime<time) { queryExecutionMaxTime=time; queryExecutionMaxTimeQueryString = hql; } if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.executed(rows, time); } }
public synchronized void queryCacheHit(String hql, String regionName) { queryCacheHitCount++; if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.cacheHitCount++; } SecondLevelCacheStatistics slcs = getSecondLevelCacheStatistics(regionName); slcs.hitCount++; }
public synchronized void updateEntity(String entityName) { entityUpdateCount++; EntityStatistics es = getEntityStatistics(entityName); es.updateCount++; }
public synchronized void loadCollection(String role) { collectionLoadCount++; getCollectionStatistics(role).loadCount++; }
public synchronized void secondLevelCacheHit(String regionName) { secondLevelCacheHitCount++; getSecondLevelCacheStatistics(regionName).hitCount++; }
public StatisticsImpl(SessionFactoryImplementor sessionFactory) { clear(); this.sessionFactory = sessionFactory; }
private final transient Map queryCaches; private final transient Map allCacheRegions = new HashMap(); private final transient StatisticsImpl statistics = new StatisticsImpl(this); private final transient EventListeners eventListeners; private final transient CurrentSessionContext currentSessionContext;
public synchronized void queryCacheHit(String hql, String regionName) { queryCacheHitCount++; if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.cacheHitCount++; } SecondLevelCacheStatistics slcs = getSecondLevelCacheStatistics(regionName); slcs.hitCount++; }
public synchronized void updateEntity(String entityName) { entityUpdateCount++; EntityStatistics es = getEntityStatistics(entityName); es.updateCount++; }
public synchronized void updateCollection(String role) { collectionUpdateCount++; getCollectionStatistics(role).updateCount++; }