Package org.glassfish.pfl.tf.spi
Class MethodMonitorBase
java.lang.Object
org.glassfish.pfl.tf.spi.Named
org.glassfish.pfl.tf.spi.MethodMonitorBase
- All Implemented Interfaces:
MethodMonitor
- Author:
- ken
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodMonitorBase(String name, Class<?> cls) protectedMethodMonitorBase(String name, Class<?> cls, MethodMonitorFactory mmf) protectedMethodMonitorBase(String name, Class<?> cls, MethodMonitorFactory mmf, Set<MethodMonitor> contents) -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<MethodMonitor> contents()Returns the contents of this method monitor.final MethodMonitorFactoryfactory()Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor.final Class<?> myClass()The class for which this MethodMonitor is defined.
-
Constructor Details
-
MethodMonitorBase
-
MethodMonitorBase
-
MethodMonitorBase
protected MethodMonitorBase(String name, Class<?> cls, MethodMonitorFactory mmf, Set<MethodMonitor> contents)
-
-
Method Details
-
myClass
Description copied from interface:MethodMonitorThe class for which this MethodMonitor is defined.- Specified by:
myClassin interfaceMethodMonitor- Returns:
- The class of this MethodMonitor.
-
factory
Description copied from interface:MethodMonitorFactory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor.- Specified by:
factoryin interfaceMethodMonitor
-
contents
Description copied from interface:MethodMonitorReturns the contents of this method monitor. If it is a composite method monitor, all the component MethoMonitor instances are returned. If it is a single MethodMonitor, it just returns itself. It is required that a composite method monitor only return MethodMonitor instances which are not themselves composite.- Specified by:
contentsin interfaceMethodMonitor
-