public class MethodMonitorRegistry extends Object
| Constructor and Description |
|---|
MethodMonitorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear(Class<? extends Annotation> annot)
Remove the MethodMonitorFactory (if any) that is associated with annot.
|
static int |
getMethodIdentifier(Class<?> cls,
String mname) |
static MethodMonitor |
getMethodMonitorForClass(Class<?> cls,
Class<? extends Annotation> annot)
Return the current MethodMonitor in use for the given cls and annot.
|
static String |
getMethodName(Class<?> cls,
int identifier)
Provided so that implementation of the MethodMonitor interface can
obtain the method name for use in log reports or for other purposes.
|
static List<String> |
getMethodNames(Class<?> cls) |
static Set<String> |
getMMAnnotations() |
static List<String> |
getTimerNames(Class<?> cls) |
static List<TimingPointType> |
getTimerTypes(Class<?> cls)
Return a list of all timer types defined for cls.
|
static MethodMonitor |
merge(MethodMonitor[] mms)
Merges the behaviors of the method monitors together.
|
static void |
register(Class<? extends Annotation> annot,
MethodMonitorFactory mmf)
Register a particular MethodMonitorFactory against an annotation.
|
static void |
registerAnnotationFile(String fname) |
static void |
registerClass(Class<?> cls)
Register a class with the tracing facility.
|
static void |
registerClass(Class<?> cls,
List<String> methodNames,
Map<Class<? extends Annotation>,org.glassfish.pfl.basic.contain.SynchronizedHolder<MethodMonitor>> annoMM)
Register a class with the tracing facility.
|
static MethodMonitorFactory |
registeredFactory(Class<? extends Annotation> annot)
Return the MethodMonitorFactory registered against the annotation, or
null if nothing is registered.
|
public static MethodMonitor merge(MethodMonitor[] mms)
public static void registerAnnotationFile(String fname)
public static void registerClass(Class<?> cls, List<String> methodNames, Map<Class<? extends Annotation>,org.glassfish.pfl.basic.contain.SynchronizedHolder<MethodMonitor>> annoMM)
cls - Class to register, which must have 1 or more MM annotations.methodNames - The list of method names used in the enhanced code.
The index of the name is the value used in the method.annoMM - The MM holders for each MM annotation on the class.public static void registerClass(Class<?> cls)
cls - public static String getMethodName(Class<?> cls, int identifier)
cls - The enhanced classidentifier - An Integer representing the method name.public static void register(Class<? extends Annotation> annot, MethodMonitorFactory mmf)
annot - mmf - public static void clear(Class<? extends Annotation> annot)
annot - public static MethodMonitorFactory registeredFactory(Class<? extends Annotation> annot)
annot - A class representing an annotation, which must itself
have a MethodMonitorGroup meta-annotation.public static MethodMonitor getMethodMonitorForClass(Class<?> cls, Class<? extends Annotation> annot)
cls - The Traced class.annot - A trace annotation on cls.public static List<TimingPointType> getTimerTypes(Class<?> cls)
cls - The monitored class to use.Copyright © 2011–2021 Eclipse Foundation. All rights reserved.