@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) ); return Long.valueOf( statistics != null ? statistics.getEntityLoadCount() : 0 ); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
json.put("EntityLoadCount", statistics.getEntityLoadCount()); json.put("EntityFetchCount", statistics.getEntityFetchCount()); json.put("EntityUpdateCount", statistics.getEntityUpdateCount());
@Override public double getValue(Statistics statistics) { return statistics.getEntityLoadCount(); } }
/** * @see StatisticsServiceMBean#getEntityLoadCount() */ public long getEntityLoadCount() { return stats.getEntityLoadCount(); } /**
/** * @see StatisticsServiceMBean#getEntityLoadCount() */ public long getEntityLoadCount() { return stats.getEntityLoadCount(); } /**
/** * @see StatisticsServiceMBean#getEntityLoadCount() */ public long getEntityLoadCount() { return stats.getEntityLoadCount(); } /**
@Override void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) { response.set(stats.getStatistics().getEntityLoadCount()); } });
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
@Override public Object invoke(Object... args) { org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args)); return Long.valueOf(statistics != null ? statistics.getEntityLoadCount() : 0); } };
public void stop() { queryExecutions += stats.getQueryExecutionCount(); transations += stats.getTransactionCount(); entityLoads += stats.getEntityLoadCount(); connects += stats.getConnectCount(); time += System.currentTimeMillis(); }
public void start() { //stats.clear(); queryExecutions = -stats.getQueryExecutionCount(); transations = -stats.getTransactionCount(); entityLoads = -stats.getEntityLoadCount(); connects = -stats.getConnectCount(); time = -System.currentTimeMillis(); }
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()); } }