|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.jpa.modules.hibernate.service.HibernateMonitorService
public class HibernateMonitorService
Provides Hibernate monitoring data, relying on EntityManagerService.
| Constructor Summary | |
|---|---|
HibernateMonitorService()
|
|
| Method Summary | |
|---|---|
java.util.List<HibernateStatistics> |
computeStatistics()
Gets Hibernate statistics for all pools. |
boolean |
doActivateJMXBeans()
JMX manual activation. |
void |
doClearStatistics(java.lang.String strPoolName)
Clear pool statistics. |
void |
doDisableStatistics()
Disables statistics (for all pools). |
void |
doEnableStatistics()
Enables statistics (for all pools). |
fr.paris.lutece.portal.service.jpa.EntityManagerService |
getEntityManagerService()
The EntityManagerService |
java.lang.String |
getName()
|
void |
init()
|
boolean |
isJMXEnabled()
true if JMX is enabled, false otherwise. |
boolean |
isStatisticsEnabled()
true if statistics are enabled, false otherwise. |
void |
setEntityManagerService(fr.paris.lutece.portal.service.jpa.EntityManagerService service)
Sets the EntityManagerService |
void |
setJMXEnabled(boolean bJMXEnabled)
true if JMX is enabled, false otherwise. |
void |
setStatisticsEnabled(boolean bStatisticsEnabled)
true if statistics are enabled, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateMonitorService()
| Method Detail |
|---|
public java.util.List<HibernateStatistics> computeStatistics()
HibernateStatisticspublic void setJMXEnabled(boolean bJMXEnabled)
true if JMX is enabled, false otherwise.
bJMXEnabled - true if JMX is enabled, false otherwise.public boolean isJMXEnabled()
true if JMX is enabled, false otherwise.
true if JMX is enabled, false otherwise.public void setStatisticsEnabled(boolean bStatisticsEnabled)
true if statistics are enabled, false otherwise.
bStatisticsEnabled - true if statistics are enabled, false otherwise.public boolean isStatisticsEnabled()
true if statistics are enabled, false otherwise.
true if statistics are enabled, false otherwise.public void setEntityManagerService(fr.paris.lutece.portal.service.jpa.EntityManagerService service)
service - the EntityManagerServicepublic fr.paris.lutece.portal.service.jpa.EntityManagerService getEntityManagerService()
public void init()
public boolean doActivateJMXBeans()
isJMXEnabled()public void doClearStatistics(java.lang.String strPoolName)
strPoolName - the pool namepublic void doEnableStatistics()
Statistics.setStatisticsEnabled(boolean)public void doDisableStatistics()
Statistics.setStatisticsEnabled(boolean)public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||