Package org.apache.openjpa.enhance.stats
Class FetchStatsCollector
- java.lang.Object
-
- org.apache.openjpa.enhance.stats.FetchStatsCollector
-
public final class FetchStatsCollector extends java.lang.Object
FetchStatsCollector aggregates fetch statistics and outputs the data periodically (10 minutes).
-
-
Constructor Summary
Constructors Constructor Description FetchStatsCollector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clear()
static void
dump()
static java.util.Set<java.lang.String>
getStatistics()
static void
hit(java.lang.String field)
static void
registerEntity(ClassMetaData cmd)
static java.util.concurrent.atomic.AtomicInteger
registerField(java.lang.String field)
static void
setlogger(Log log)
-
-
-
Method Detail
-
setlogger
public static void setlogger(Log log)
-
registerEntity
public static void registerEntity(ClassMetaData cmd)
-
registerField
public static java.util.concurrent.atomic.AtomicInteger registerField(java.lang.String field)
-
hit
public static void hit(java.lang.String field)
-
getStatistics
public static java.util.Set<java.lang.String> getStatistics()
-
dump
public static void dump()
-
clear
public static void clear()
-
-