Methods Summary |
---|
public void | clear()
stats.clear();
|
public long | getCloseStatementCount()
return stats.getCloseStatementCount();
|
public long | getCollectionFetchCount()
return stats.getCollectionFetchCount();
|
public long | getCollectionLoadCount()
return stats.getCollectionLoadCount();
|
public long | getCollectionRecreateCount()
return stats.getCollectionRecreateCount();
|
public long | getCollectionRemoveCount()
return stats.getCollectionRemoveCount();
|
public java.lang.String[] | getCollectionRoleNames()
return stats.getCollectionRoleNames();
|
public org.hibernate.stat.CollectionStatistics | getCollectionStatistics(java.lang.String role)
return stats.getCollectionStatistics(role);
|
public long | getCollectionUpdateCount()
return stats.getCollectionUpdateCount();
|
public long | getConnectCount()
return stats.getConnectCount();
|
public long | getEntityDeleteCount()
return stats.getEntityDeleteCount();
|
public long | getEntityFetchCount()
return stats.getEntityFetchCount();
|
public long | getEntityInsertCount()
return stats.getEntityInsertCount();
|
public long | getEntityLoadCount()
return stats.getEntityLoadCount();
|
public java.lang.String[] | getEntityNames()
return stats.getEntityNames();
|
public org.hibernate.stat.EntityStatistics | getEntityStatistics(java.lang.String entityName)
return stats.getEntityStatistics(entityName);
|
public long | getEntityUpdateCount()
return stats.getEntityUpdateCount();
|
public long | getFlushCount()
return stats.getFlushCount();
|
public long | getOptimisticFailureCount()
return stats.getOptimisticFailureCount();
|
public long | getPrepareStatementCount()
return stats.getPrepareStatementCount();
|
public java.lang.String[] | getQueries()
return stats.getQueries();
|
public long | getQueryCacheHitCount()
return stats.getQueryCacheHitCount();
|
public long | getQueryCacheMissCount()
return stats.getQueryCacheMissCount();
|
public long | getQueryCachePutCount()
return stats.getQueryCachePutCount();
|
public long | getQueryExecutionCount()
return stats.getQueryExecutionCount();
|
public long | getQueryExecutionMaxTime()
return stats.getQueryExecutionMaxTime();
|
public java.lang.String | getQueryExecutionMaxTimeQueryString()
return stats.getQueryExecutionMaxTimeQueryString();
|
public org.hibernate.stat.QueryStatistics | getQueryStatistics(java.lang.String hql)
return stats.getQueryStatistics(hql);
|
public long | getSecondLevelCacheHitCount()
return stats.getSecondLevelCacheHitCount();
|
public long | getSecondLevelCacheMissCount()
return stats.getSecondLevelCacheMissCount();
|
public long | getSecondLevelCachePutCount()
return stats.getSecondLevelCachePutCount();
|
public java.lang.String[] | getSecondLevelCacheRegionNames()
return stats.getSecondLevelCacheRegionNames();
|
public org.hibernate.stat.SecondLevelCacheStatistics | getSecondLevelCacheStatistics(java.lang.String regionName)
return stats.getSecondLevelCacheStatistics(regionName);
|
public long | getSessionCloseCount()
return stats.getSessionCloseCount();
|
public long | getSessionOpenCount()
return stats.getSessionOpenCount();
|
public long | getStartTime()
return stats.getStartTime();
|
public long | getSuccessfulTransactionCount()
return stats.getSuccessfulTransactionCount();
|
public long | getTransactionCount()
return stats.getTransactionCount();
|
public boolean | isStatisticsEnabled()
return stats.isStatisticsEnabled();
|
public void | logSummary()
stats.logSummary();
|
public void | setSessionFactory(org.hibernate.SessionFactory sf)Useful to init this MBean wo a JNDI session factory name
this.sf = sf;
if (sf == null) {
stats = new StatisticsImpl();
}
else {
stats = sf.getStatistics();
}
|
public void | setSessionFactoryJNDIName(java.lang.String sfJNDIName)
this.sfJNDIName = sfJNDIName;
try {
Object obj = new InitialContext().lookup(sfJNDIName);
if (obj instanceof Reference) {
Reference ref = (Reference) obj;
setSessionFactory( (SessionFactory) SessionFactoryObjectFactory.getInstance( (String) ref.get(0).getContent() ) );
}
else {
setSessionFactory( (SessionFactory) obj );
}
}
catch (NameNotFoundException e) {
log.error("No session factory with JNDI name " + sfJNDIName, e);
setSessionFactory(null);
}
catch (NamingException e) {
log.error("Error while accessing session factory with JNDI name " + sfJNDIName, e);
setSessionFactory(null);
}
catch (ClassCastException e) {
log.error("JNDI name " + sfJNDIName + " does not handle a session factory reference", e);
setSessionFactory(null);
}
|
public void | setStatisticsEnabled(boolean enable)
stats.setStatisticsEnabled(enable);
|