EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.tools.profiler
Class QueryMonitor

java.lang.Object
  extended by org.eclipse.persistence.tools.profiler.QueryMonitor

public class QueryMonitor
extends java.lang.Object

Purpose: Provide a very simple low overhead means for measuring query executions, and cache hits. This can be useful for performance analysis in a complex system. This monitor is enabled through the System property "org.eclipse.persistence.querymonitor=true" or through the persistence.xml property eclipselink.profiler=QueryMonitor. It dumps the number of query cache hits, and executions (misses) once every 100s.

Author:
James Sutherland
Since:
TopLink 10.1.3

Field Summary
static java.util.Map<java.lang.String,java.lang.Number> cacheHits
           
static java.util.Map<java.lang.String,java.lang.Number> cacheMisses
           
static long dumpTime
           
static java.lang.Boolean shouldMonitor
           
 
Constructor Summary
QueryMonitor()
           
 
Method Summary
static void checkDumpTime()
           
static void incrementDelete(DeleteObjectQuery query)
           
static void incrementInsert(WriteObjectQuery query)
           
static void incrementReadAllHits(ReadAllQuery query)
           
static void incrementReadAllMisses(ReadAllQuery query)
           
static void incrementReadObjectHits(ReadObjectQuery query)
           
static void incrementReadObjectMisses(ReadObjectQuery query)
           
static void incrementUpdate(WriteObjectQuery query)
           
static boolean shouldMonitor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheHits

public static java.util.Map<java.lang.String,java.lang.Number> cacheHits

cacheMisses

public static java.util.Map<java.lang.String,java.lang.Number> cacheMisses

dumpTime

public static long dumpTime

shouldMonitor

public static java.lang.Boolean shouldMonitor
Constructor Detail

QueryMonitor

public QueryMonitor()
Method Detail

shouldMonitor

public static boolean shouldMonitor()

checkDumpTime

public static void checkDumpTime()

incrementReadObjectHits

public static void incrementReadObjectHits(ReadObjectQuery query)

incrementReadObjectMisses

public static void incrementReadObjectMisses(ReadObjectQuery query)

incrementReadAllHits

public static void incrementReadAllHits(ReadAllQuery query)

incrementReadAllMisses

public static void incrementReadAllMisses(ReadAllQuery query)

incrementInsert

public static void incrementInsert(WriteObjectQuery query)

incrementUpdate

public static void incrementUpdate(WriteObjectQuery query)

incrementDelete

public static void incrementDelete(DeleteObjectQuery query)

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference