@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) ); return Long.valueOf( statistics != null ? statistics.getCollectionUpdateCount() : 0 ); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
json.put("CollectionLoadCount", statistics.getCollectionLoadCount()); json.put("CollectionFetchCount", statistics.getCollectionFetchCount()); json.put("CollectionUpdateCount", statistics.getCollectionUpdateCount()); json.put("CollectionRemoveCount", statistics.getCollectionRemoveCount()); json.put("CollectionRecreateCount", statistics.getCollectionRecreateCount());
@Override public double getValue(Statistics statistics) { return statistics.getCollectionUpdateCount(); } }
/** * @see StatisticsServiceMBean#getCollectionUpdateCount() */ public long getCollectionUpdateCount() { return stats.getCollectionUpdateCount(); } /**
/** * @see StatisticsServiceMBean#getCollectionUpdateCount() */ public long getCollectionUpdateCount() { return stats.getCollectionUpdateCount(); } /**
/** * @see StatisticsServiceMBean#getCollectionUpdateCount() */ public long getCollectionUpdateCount() { return stats.getCollectionUpdateCount(); } /**
/** * @see StatisticsServiceMBean#getCollectionUpdateCount() */ public long getCollectionUpdateCount() { return stats.getCollectionUpdateCount(); } /**
@Override void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) { response.set(stats.getStatistics().getCollectionUpdateCount()); } });
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getCollectionUpdateCount() : 0); } };
public StatisticData[] retrieveStatisticData() { final List<StatisticData> resultList = new ArrayList<StatisticData>(); for (Map.Entry<String, Statistics> entry : statistics.entrySet()) { final String element = entry.getKey(); final Statistics stats = entry.getValue(); resultList.add(new StatisticData(NAME_FETCH, element, stats.getCollectionFetchCount())); resultList.add(new StatisticData(NAME_LOAD, element, stats.getCollectionLoadCount())); resultList.add(new StatisticData(NAME_RECREATE, element, stats.getCollectionRecreateCount())); resultList.add(new StatisticData(NAME_REMOVE, element, stats.getCollectionRemoveCount())); resultList.add(new StatisticData(NAME_UPDATE, element, stats.getCollectionUpdateCount())); } if (0 == resultList.size()) { return StatisticData.EMPTY_ARRAY; } final StatisticData[] result = new StatisticData[resultList.size()]; resultList.toArray(result); return result; } }
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()); } }
return stats.getCollectionUpdateCount();