| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final Map | |
| private static final Map | |
| private static final Map | |
| private static final Map | |
| private static final Map | |
| private static final Map | |
| private static final Map | |
| private static final Set | |
| private static final Map | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static final MethodMonitorGroup | |
| public static synchronized void | clear(Class<? extends Annotation> annot)
Remove the MethodMonitorFactory (if any) that is associated with annot. |
| private static void | |
| private static void | |
| private static void | |
| private static String | |
| public static synchronized int | |
| public static synchronized MethodMonitor | Returns: The MethodMonitor, if any.The Traced class. cls, final Class<? extends Annotation> A trace annotation on cls. annot)Return the current MethodMonitor in use for the given cls and annot. |
| public static synchronized String | Returns: The name of the method corresponding to the identifier.The enhanced class cls, int An Integer representing the method name. identifier)Provided so that implementation of the MethodMonitor interface can obtain the method name for use in log reports or for other purposes. |
| public static synchronized List | |
| public static synchronized Set | |
| public static synchronized List | |
| public static synchronized List | Returns: A list of timer types in the same order as the method names.The monitored class to use. cls)Return a list of all timer types defined for cls. |
| public static synchronized MethodMonitor | |
| public static synchronized void | register(Class<? extends Annotation> annot, MethodMonitorFactory mmf)
Register a particular MethodMonitorFactory against an annotation. |
| public static synchronized void | |
| public static synchronized void | registerClass(final Class<?>
Class to register, which must have 1 or more MM annotations. cls, final List<String> The list of method names used in the enhanced code.
The index of the name is the value used in the method. methodNames, final Map<Class<? extends Annotation>, SynchronizedHolder<MethodMonitor>> The MM holders for each MM annotation on the class. annoMM)Register a class with the tracing facility. |
| public static synchronized void | |
| public static synchronized MethodMonitorFactory | Returns: The MethodMonitorFactory for annot.A class representing an annotation, which must itself
have a MethodMonitorGroup meta-annotation. annot)Return the MethodMonitorFactory registered against the annotation, or null if nothing is registered. |
| private static boolean | |
| private static boolean | |
| private static void | |
| private static void |
| annotationToClasses | back to summary |
|---|---|
| private static final Map<Class<? extends Annotation>, Set<Class<?>>> annotationToClasses | |
| annotationToMMF | back to summary |
|---|---|
| private static final Map<Class<? extends Annotation>, MethodMonitorFactory> annotationToMMF | |
| annotationToMMFComposition | back to summary |
|---|---|
| private static final Map<Class<? extends Annotation>, MethodMonitorFactory> annotationToMMFComposition | |
| annotationToMMFSets | back to summary |
|---|---|
| private static final Map<Class<? extends Annotation>, Set<MethodMonitorFactory>> annotationToMMFSets | |
| classToAnnoMM | back to summary |
|---|---|
| private static final Map<Class<?>, Map<Class<? extends Annotation>, SynchronizedHolder<MethodMonitor>>> classToAnnoMM | |
| classToMNames | back to summary |
|---|---|
| private static final Map<Class<?>, List<String>> classToMNames | |
| classToTimerNames | back to summary |
|---|---|
| private static final Map<Class<?>, List<String>> classToTimerNames | |
| classToTimerTypes | back to summary |
|---|---|
| private static final Map<Class<?>, List<TimingPointType>> classToTimerTypes | |
| mmAnnotations | back to summary |
|---|---|
| private static final Set<String> mmAnnotations | |
| subgroups | back to summary |
|---|---|
| private static final Map<Class<? extends Annotation>, Set<Class<? extends Annotation>>> subgroups | |
| subgroupsTC | back to summary |
|---|---|
| private static final Map<Class<? extends Annotation>, Set<Class<? extends Annotation>>> subgroupsTC | |
| MethodMonitorRegistry | back to summary |
|---|---|
| public MethodMonitorRegistry() | |
| checkAnnotation | back to summary |
|---|---|
| private static final MethodMonitorGroup checkAnnotation(Class<? extends Annotation> annoClass) | |
| clear | back to summary |
|---|---|
| public static synchronized void clear(Class<? extends Annotation> annot) Remove the MethodMonitorFactory (if any) that is associated with annot. | |
| computeTransitiveClosure | back to summary |
|---|---|
| private static void computeTransitiveClosure() | |
| dfs | back to summary |
|---|---|
| private static void dfs(Class<? extends Annotation> src, Class<? extends Annotation> dest) | |
| doFullUpdate | back to summary |
|---|---|
| private static void doFullUpdate() | |
| getExternalName | back to summary |
|---|---|
| private static String getExternalName(String name) | |
| getMethodIdentifier | back to summary |
|---|---|
| public static synchronized int getMethodIdentifier(Class<?> cls, String mname) | |
| getMethodMonitorForClass | back to summary |
|---|---|
| public static synchronized MethodMonitor getMethodMonitorForClass(final Class<?> cls, final Class<? extends Annotation> annot) Return the current MethodMonitor in use for the given cls and annot. Returns null if no MethodMonitor is in use. Throws an exception if either cls is not a traced class, or annot is not a tracing annotation on cls.
| |
| getMethodName | back to summary |
|---|---|
| public static synchronized 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. | |
| getMethodNames | back to summary |
|---|---|
| public static synchronized List | |
| getMMAnnotations | back to summary |
|---|---|
| public static synchronized Set | |
| getTimerNames | back to summary |
|---|---|
| public static synchronized List | |
| getTimerTypes | back to summary |
|---|---|
| public static synchronized List Return a list of all timer types defined for cls. This is in the same order as classToMNames.get(cls).
| |
| merge | back to summary |
|---|---|
| public static synchronized MethodMonitor merge(MethodMonitor[] mms) Merges the behaviors of the method monitors together. | |
| register | back to summary |
|---|---|
| public static synchronized void register(Class<? extends Annotation> annot, MethodMonitorFactory mmf) Register a particular MethodMonitorFactory against an annotation. Annot must be annotated with the MethodMonitorGroup meta-annotation. Only a single mmf may be registered against an annotation. A subsequent register call overwrites the registered annotation. Annot must not be null. | |
| registerAnnotationFile | back to summary |
|---|---|
| public static synchronized void registerAnnotationFile(final String fname) | |
| registerClass | back to summary |
|---|---|
| public static synchronized void registerClass(final Class<?> cls, final List<String> methodNames, final Map<Class<? extends Annotation>, SynchronizedHolder<MethodMonitor>> annoMM) Register a class with the tracing facility. The class must be an instrumented class that is annotated with an annotation with a meta-annotation of @MethodMonitorGroup. Note that this method should only be called from the enhanced class, not directly by the user.
| |
| registerClass | back to summary |
|---|---|
| public static synchronized void registerClass(final Class<?> cls) Register a class with the tracing facility. This form assumes that all of the computation for method names and the mapping from annotation name to MM holder is done at registration time, rather than in the bytecode enhancer. This shortens the generated bytecode noticeably. | |
| registeredFactory | back to summary |
|---|---|
| public static synchronized MethodMonitorFactory registeredFactory(Class<? extends Annotation> annot) Return the MethodMonitorFactory registered against the annotation, or null if nothing is registered.
| |
| scanAnnotation | back to summary |
|---|---|
| private static boolean scanAnnotation(final Class<? extends Annotation> annoClass, final MethodMonitorGroup mmg) | |
| scanClassAnnotations | back to summary |
|---|---|
| private static boolean scanClassAnnotations(final Class<?> cls) | |
| updateAnnotation | back to summary |
|---|---|
| private static void updateAnnotation(Class<? extends Annotation> annot) | |
| updateTracedClass | back to summary |
|---|---|
| private static void updateTracedClass(Class<?> cls) | |