@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) ); return Long.valueOf( statistics != null ? statistics.getCollectionLoadCount() : 0 ); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
json.put("SessionCloseCount", statistics.getSessionCloseCount()); json.put("SessionOpenCount", statistics.getSessionOpenCount()); json.put("CollectionLoadCount", statistics.getCollectionLoadCount()); json.put("CollectionFetchCount", statistics.getCollectionFetchCount()); json.put("CollectionUpdateCount", statistics.getCollectionUpdateCount());
@Override public double getValue(Statistics statistics) { return statistics.getCollectionLoadCount(); } }
/** * @see StatisticsServiceMBean#getCollectionLoadCount() */ public long getCollectionLoadCount() { return stats.getCollectionLoadCount(); } /**
/** * @see StatisticsServiceMBean#getCollectionLoadCount() */ public long getCollectionLoadCount() { return stats.getCollectionLoadCount(); } /**
/** * @see StatisticsServiceMBean#getCollectionLoadCount() */ public long getCollectionLoadCount() { return stats.getCollectionLoadCount(); } /**
/** * @see StatisticsServiceMBean#getCollectionLoadCount() */ public long getCollectionLoadCount() { return stats.getCollectionLoadCount(); } /**
@Override void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) { response.set(stats.getStatistics().getCollectionLoadCount()); } });
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionLoadCount() : 0); } };
public void endCacheTest() { SessionFactory sessionFactory = environment.get(SessionFactory.class); if (sessionFactory != null) { assertEquals(0, sessionFactory.getStatistics().getEntityLoadCount()); assertEquals(0, sessionFactory.getStatistics().getCollectionLoadCount()); } }
public void endCacheTest() { SessionFactory sessionFactory = environment.get(SessionFactory.class); if (sessionFactory != null) { assertEquals(0, sessionFactory.getStatistics().getEntityLoadCount()); assertEquals(0, sessionFactory.getStatistics().getCollectionLoadCount()); } }
private void addCollectionStats(List<ApplicationStat> res, Statistics stats) { addStat(res, "collection/total/fetches", stats.getCollectionFetchCount()); addStat(res, "collection/total/loads", stats.getCollectionLoadCount()); addStat(res, "collection/total/recreates", stats.getCollectionRecreateCount()); addStat(res, "collection/total/removes", stats.getCollectionRemoveCount()); addStat(res, "collection/total/updates", stats.getCollectionUpdateCount()); for (String collectionRole : stats.getCollectionRoleNames()) { CollectionStatistics collStats = stats.getCollectionStatistics(collectionRole); addStat(res, "collection/" + collectionRole + "/fetches", collStats.getFetchCount()); addStat(res, "collection/" + collectionRole + "/loads", collStats.getLoadCount()); addStat(res, "collection/" + collectionRole + "/recreates", collStats.getRecreateCount()); addStat(res, "collection/" + collectionRole + "/removes", collStats.getRemoveCount()); addStat(res, "collection/" + collectionRole + "/update", collStats.getUpdateCount()); } }