public class HibernateMonitorService extends Object
EntityManagerService.| Constructor and Description |
|---|
HibernateMonitorService() |
| Modifier and Type | Method and Description |
|---|---|
List<HibernateStatistics> |
computeStatistics()
Gets Hibernate statistics for all pools.
|
boolean |
doActivateJMXBeans()
JMX manual activation.
|
void |
doClearStatistics(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
|
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. |
public 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(String strPoolName)
strPoolName - the pool namepublic void doEnableStatistics()
Statistics.setStatisticsEnabled(boolean)public void doDisableStatistics()
Statistics.setStatisticsEnabled(boolean)public String getName()
Copyright © 2016 City of Paris. All rights reserved.