|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.tf.spi.MethodMonitorRegistry
public class MethodMonitorRegistry
Main class for registering MethodMonitorFactories against particular annotation classes that represent method monitor groups. This
| Constructor Summary | |
|---|---|
MethodMonitorRegistry()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodMonitorRegistry()
| Method Detail |
|---|
public static MethodMonitor merge(MethodMonitor[] mms)
public static Set<String> getMMAnnotations()
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 List<String> getMethodNames(Class<?> cls)
public static String getMethodName(Class<?> cls,
int identifier)
cls - The enhanced classidentifier - An Integer representing the method name.
public static int getMethodIdentifier(Class<?> cls,
String mname)
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.
public static List<String> getTimerNames(Class<?> cls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||