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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
QueryMonitor() |
Modifier and Type | Method and Description |
---|---|
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() |
public static java.util.Map<java.lang.String,java.lang.Number> cacheHits
public static java.util.Map<java.lang.String,java.lang.Number> cacheMisses
public static long dumpTime
public static java.lang.Boolean shouldMonitor
public static boolean shouldMonitor()
public static void checkDumpTime()
public static void incrementReadObjectHits(ReadObjectQuery query)
public static void incrementReadObjectMisses(ReadObjectQuery query)
public static void incrementReadAllHits(ReadAllQuery query)
public static void incrementReadAllMisses(ReadAllQuery query)
public static void incrementInsert(WriteObjectQuery query)
public static void incrementUpdate(WriteObjectQuery query)
public static void incrementDelete(DeleteObjectQuery query)