Package ubic.gemma.web.util
Class HibernateMonitorImpl
- java.lang.Object
-
- ubic.gemma.web.util.HibernateMonitorImpl
-
- All Implemented Interfaces:
HibernateMonitor
@Component public class HibernateMonitorImpl extends Object implements HibernateMonitor
Monitoring of Hibernate status.- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description HibernateMonitorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStats()
String
getStats(boolean showEntityStats, boolean showCollectionStats, boolean showSecondLevelCacheDetails)
Log some statistics.void
resetStats()
Clear all statistics.
-
-
-
Method Detail
-
getStats
public String getStats()
- Specified by:
getStats
in interfaceHibernateMonitor
- Returns:
- Log some statistics.
-
getStats
public String getStats(boolean showEntityStats, boolean showCollectionStats, boolean showSecondLevelCacheDetails)
Description copied from interface:HibernateMonitor
Log some statistics. Parameters control the sections that are populated.- Specified by:
getStats
in interfaceHibernateMonitor
- Parameters:
showEntityStats
- whether to show entity statisticsshowCollectionStats
- whether to show collection statisticsshowSecondLevelCacheDetails
- whether to show level cache details- Returns:
- log
-
resetStats
public void resetStats()
Description copied from interface:HibernateMonitor
Clear all statistics.- Specified by:
resetStats
in interfaceHibernateMonitor
-
-