|
|||||||||
| 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(java.lang.Class<? extends java.lang.annotation.Annotation> annot)
Remove the MethodMonitorFactory (if any) that is associated with annot. |
static int |
getMethodIdentifier(java.lang.Class<?> cls,
java.lang.String mname)
|
static MethodMonitor |
getMethodMonitorForClass(java.lang.Class<?> cls,
java.lang.Class<? extends java.lang.annotation.Annotation> annot)
Return the current MethodMonitor in use for the given cls and annot. |
static java.lang.String |
getMethodName(java.lang.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 java.util.List<java.lang.String> |
getMethodNames(java.lang.Class<?> cls)
|
static java.util.Set<java.lang.String> |
getMMAnnotations()
|
static java.util.List<java.lang.String> |
getTimerNames(java.lang.Class<?> cls)
|
static java.util.List<TimingPointType> |
getTimerTypes(java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> annot,
MethodMonitorFactory mmf)
Register a particular MethodMonitorFactory against an annotation. |
static void |
registerAnnotationFile(java.lang.String fname)
|
static void |
registerClass(java.lang.Class<?> cls)
Register a class with the tracing facility. |
static void |
registerClass(java.lang.Class<?> cls,
java.util.List<java.lang.String> methodNames,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,SynchronizedHolder<MethodMonitor>> annoMM)
Register a class with the tracing facility. |
static MethodMonitorFactory |
registeredFactory(java.lang.Class<? extends java.lang.annotation.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 java.util.Set<java.lang.String> getMMAnnotations()
public static void registerAnnotationFile(java.lang.String fname)
public static void registerClass(java.lang.Class<?> cls,
java.util.List<java.lang.String> methodNames,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,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(java.lang.Class<?> cls)
cls - public static java.util.List<java.lang.String> getMethodNames(java.lang.Class<?> cls)
public static java.lang.String getMethodName(java.lang.Class<?> cls,
int identifier)
cls - The enhanced classidentifier - An Integer representing the method name.
public static int getMethodIdentifier(java.lang.Class<?> cls,
java.lang.String mname)
public static void register(java.lang.Class<? extends java.lang.annotation.Annotation> annot,
MethodMonitorFactory mmf)
annot - mmf - public static void clear(java.lang.Class<? extends java.lang.annotation.Annotation> annot)
annot - public static MethodMonitorFactory registeredFactory(java.lang.Class<? extends java.lang.annotation.Annotation> annot)
annot - A class representing an annotation, which must itself
have a MethodMonitorGroup meta-annotation.
public static MethodMonitor getMethodMonitorForClass(java.lang.Class<?> cls,
java.lang.Class<? extends java.lang.annotation.Annotation> annot)
cls - The Traced class.annot - A trace annotation on cls.
public static java.util.List<TimingPointType> getTimerTypes(java.lang.Class<?> cls)
cls - The monitored class to use.
public static java.util.List<java.lang.String> getTimerNames(java.lang.Class<?> cls)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||