Top Description Fields Constructors Methods
org.eclipse.persistence.tools.profiler

public Class FetchGroupMonitor

extends Object
Class Inheritance
Imports
java.util.*, org.eclipse.persistence.internal.security.PrivilegedAccessHelper

Purpose: Provide a very simple low overhead means for measuring fetch group field usage. This can be useful for performance analysis in a complex system. This monitor is enabled through the System property "org.eclipse.persistence.fetchgroupmonitor=true". It dumps the attribute used for a class every time a new attribute is accessed.

Author
James Sutherland
Since
TopLink 10.1.3.2

Field Summary

Modifier and TypeField and Description
public static Hashtable<Class<?>, Set<String>>
public static Boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
recordFetchedAttribute(Class<?> domainClass, String attributeName)

public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fetchedAttributesback to summary
public static Hashtable<Class<?>, Set<String>> fetchedAttributes
shouldMonitorback to summary
public static Boolean shouldMonitor

Constructor Detail

FetchGroupMonitorback to summary
public FetchGroupMonitor()

Method Detail

recordFetchedAttributeback to summary
public static void recordFetchedAttribute(Class<?> domainClass, String attributeName)
shouldMonitorback to summary
public static boolean shouldMonitor()