json.put("CollectionRemoveCount", statistics.getCollectionRemoveCount()); json.put("CollectionRecreateCount", statistics.getCollectionRecreateCount()); json.put("StartTime", statistics.getStartTime()); json.put("SecondLevelCacheRegionNames", statistics.getSecondLevelCacheRegionNames()); json.put("SuccessfulTransactionCount", statistics.getSuccessfulTransactionCount());
/** * {@inheritDoc} * * @see net.sf.ehcache.hibernate.management.api.HibernateStats#getQueryExecutionRate() */ public double getQueryExecutionRate() { long startTime = getStatistics().getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / MILLIS_PER_SECOND; return getQueryExecutionCount() / deltaSecs; }
/** * @see StatisticsServiceMBean#getStartTime() */ public long getStartTime() { return stats.getStartTime(); }
/** * @see StatisticsServiceMBean#getStartTime() */ public long getStartTime() { return stats.getStartTime(); }
/** * @see StatisticsServiceMBean#getStartTime() */ public long getStartTime() { return stats.getStartTime(); }
/** * @see StatisticsServiceMBean#getStartTime() */ public long getStartTime() { return stats.getStartTime(); }
public double getCachePutRate() { long startTime = statistics.getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / 1000d; return getCachePutCount() / deltaSecs; }
public double getCacheMissRate() { long startTime = statistics.getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / 1000d; return getCacheMissCount() / deltaSecs; }
public double getQueryExecutionRate() { long startTime = statistics.getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / 1000d; return getQueryExecutionCount() / deltaSecs; }
public double getCacheHitRate() { long startTime = statistics.getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / 1000d; return getCacheHitCount() / deltaSecs; }
/** * {@inheritDoc} * * @see net.sf.ehcache.hibernate.management.api.HibernateStats#getQueryExecutionRate() */ public double getQueryExecutionRate() { long startTime = getStatistics().getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / MILLIS_PER_SECOND; return getQueryExecutionCount() / deltaSecs; }
/** * {@inheritDoc} * * @see net.sf.ehcache.hibernate.management.api.HibernateStats#getQueryExecutionRate() */ public double getQueryExecutionRate() { long startTime = getStatistics().getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / MILLIS_PER_SECOND; return getQueryExecutionCount() / deltaSecs; }
if(value instanceof Statistics) { Statistics stats = (Statistics) value; text = "Statistics " + formatter.format( new Date(stats.getStartTime()) ); tooltip = stats.toString();
/** * {@inheritDoc} * * @see net.sf.ehcache.hibernate.management.api.HibernateStats#getQueryExecutionRate() */ public double getQueryExecutionRate() { long startTime = getStatistics().getStartTime(); long now = System.currentTimeMillis(); double deltaSecs = (now - startTime) / MILLIS_PER_SECOND; return getQueryExecutionCount() / deltaSecs; }
if(value instanceof Statistics) { Statistics stats = (Statistics) value; text = "Statistics " + formatter.format( new Date(stats.getStartTime()) ); tooltip = stats.toString();
@Override protected void populateStats(Statistics stats) throws Exception { org.hibernate.stat.Statistics hs = sessionFactory.getStatistics(); stats.add("Start time", new Date(hs.getStartTime())); stats.add("Flush count", hs.getFlushCount()); stats.add("Session open count", hs.getSessionOpenCount()); stats.add("Session close count", hs.getSessionCloseCount(), hs.getSessionCloseCount() < hs.getSessionOpenCount()); stats.add("Transaction count", hs.getTransactionCount()); stats.add("Successful transaction count", hs.getSuccessfulTransactionCount()); stats.add("Optimistic failure count", hs.getOptimisticFailureCount()); stats.add("Connect count", hs.getConnectCount()); stats.add("Prepare statement count", hs.getPrepareStatementCount()); stats.add("Close statement count", hs.getCloseStatementCount()); stats.add("Query execution count", hs.getQueryExecutionCount()); stats.addOkBelow("Query execution max time", hs.getQueryExecutionMaxTime(), 1000); stats.add("Slowest statement", hs.getQueryExecutionMaxTimeQueryString()); }
return stats.getStartTime();