fr.paris.lutece.plugins.jpa.modules.hibernate.service
Class HibernateMonitorService

java.lang.Object
  extended by fr.paris.lutece.plugins.jpa.modules.hibernate.service.HibernateMonitorService

public class HibernateMonitorService
extends Object

Provides Hibernate monitoring data, relying on EntityManagerService.


Constructor Summary
HibernateMonitorService()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateMonitorService

public HibernateMonitorService()
Method Detail

computeStatistics

public List<HibernateStatistics> computeStatistics()
Gets Hibernate statistics for all pools.

Returns:
list of HibernateStatistics

setJMXEnabled

public void setJMXEnabled(boolean bJMXEnabled)
true if JMX is enabled, false otherwise.

Parameters:
bJMXEnabled - true if JMX is enabled, false otherwise.

isJMXEnabled

public boolean isJMXEnabled()
true if JMX is enabled, false otherwise.

Returns:
true if JMX is enabled, false otherwise.

setStatisticsEnabled

public void setStatisticsEnabled(boolean bStatisticsEnabled)
true if statistics are enabled, false otherwise.

Parameters:
bStatisticsEnabled - true if statistics are enabled, false otherwise.

isStatisticsEnabled

public boolean isStatisticsEnabled()
true if statistics are enabled, false otherwise.

Returns:
true if statistics are enabled, false otherwise.

setEntityManagerService

public void setEntityManagerService(fr.paris.lutece.portal.service.jpa.EntityManagerService service)
Sets the EntityManagerService

Parameters:
service - the EntityManagerService

getEntityManagerService

public fr.paris.lutece.portal.service.jpa.EntityManagerService getEntityManagerService()
The EntityManagerService

Returns:
the EntityManagerService

init

public void init()


doActivateJMXBeans

public boolean doActivateJMXBeans()
JMX manual activation.

Returns:
isJMXEnabled()

doClearStatistics

public void doClearStatistics(String strPoolName)
Clear pool statistics.

Parameters:
strPoolName - the pool name

doEnableStatistics

public void doEnableStatistics()
Enables statistics (for all pools).

See Also:
Statistics.setStatisticsEnabled(boolean)

doDisableStatistics

public void doDisableStatistics()
Disables statistics (for all pools).

See Also:
Statistics.setStatisticsEnabled(boolean)

getName

public String getName()



Copyright © 2013 Mairie de Paris. All Rights Reserved.