pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.system
Class HibernateStatistics

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.system.HibernateStatistics
All Implemented Interfaces:
Configurable<HibernateStatisticsConfiguration>

public class HibernateStatistics
extends Controller
implements Configurable<HibernateStatisticsConfiguration>

creates statistics for the HibernateTM SessionFactory used by pulse.

Version:
$Revision: 2051 $
Author:
Thomas Weber

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
HibernateStatistics()
           
 
Method Summary
 void initialize(HibernateStatisticsConfiguration conf)
          
 org.torweg.pulse.component.core.system.SecondLevelCacheStats showCacheStats(ServiceRequest request)
           
 org.torweg.pulse.component.core.system.CollectionStats showCollectionStats(ServiceRequest request)
           
 org.torweg.pulse.component.core.system.EntityStats showEntityStats(ServiceRequest request)
           
 org.torweg.pulse.component.core.system.GlobalStats showSummary(ServiceRequest request)
           
 void status(ServiceRequest request)
          returns the current status as a JSONOutputEvent.
 void toggleStatistics(ServiceRequest request)
          can be used to turn the statistics on or off.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateStatistics

public HibernateStatistics()
Method Detail

status

@Action(value="hibernateStatisticsStatus", generate=true, security=ALWAYS)
@Permission(value="hibernateStatisticsStatus")
@Groups(values="hibernateStatisicsUser")
public final void status(ServiceRequest request)
returns the current status as a JSONOutputEvent.

Parameters:
request - the current request

toggleStatistics

@Action(value="hibernateStatisticsToggle", generate=true, security=ALWAYS)
@Permission(value="hibernateStatisticsToggle")
@Groups(values="hibernateStatisicsManager")
public final void toggleStatistics(ServiceRequest request)
can be used to turn the statistics on or off.

Parameters:
request - the current request

showSummary

@Action(value="hibernateStatisticsSummary", generate=true, security=ALWAYS)
@Permission(value="hibernateStatisticsSummary")
@Groups(values={"hibernateStatisicsManager","hibernateStatisticsUser"})
public final org.torweg.pulse.component.core.system.GlobalStats showSummary(ServiceRequest request)

showCacheStats

@Action(value="hibernateStatisticsCache", generate=true, security=ALWAYS)
@Permission(value="hibernateStatisticsCache")
@Groups(values={"hibernateStatisicsManager","hibernateStatisticsUser"})
public final org.torweg.pulse.component.core.system.SecondLevelCacheStats showCacheStats(ServiceRequest request)

showCollectionStats

@Action(value="hibernateStatisticsCollections", generate=true, security=ALWAYS)
@Permission(value="hibernateStatisticsCollections")
@Groups(values={"hibernateStatisicsManager","hibernateStatisticsUser"})
public final org.torweg.pulse.component.core.system.CollectionStats showCollectionStats(ServiceRequest request)

showEntityStats

@Action(value="hibernateStatisticsEntities", generate=true, security=ALWAYS)
@Permission(value="hibernateStatisticsEntities")
@Groups(values={"hibernateStatisicsManager","hibernateStatisticsUser"})
public final org.torweg.pulse.component.core.system.EntityStats showEntityStats(ServiceRequest request)

initialize

public void initialize(HibernateStatisticsConfiguration conf)

Specified by:
initialize in interface Configurable<HibernateStatisticsConfiguration>
Parameters:
conf - the configuration