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
public abstract class MethodMonitorBase extends Named implements MethodMonitor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MethodMonitorBase.MethodMonitorFactorySelfImpl
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
cls
private MethodMonitorFactory
mmf
private java.util.Collection<MethodMonitor>
myContents
-
Constructor Summary
Constructors Modifier Constructor Description protected
MethodMonitorBase(java.lang.String name, java.lang.Class<?> cls)
protected
MethodMonitorBase(java.lang.String name, java.lang.Class<?> cls, MethodMonitorFactory mmf)
protected
MethodMonitorBase(java.lang.String name, java.lang.Class<?> cls, MethodMonitorFactory mmf, java.util.Set<MethodMonitor> contents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<MethodMonitor>
contents()
Returns the contents of this method monitor.MethodMonitorFactory
factory()
Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor.java.lang.Class<?>
myClass()
The class for which this MethodMonitor is defined.
-
-
-
Field Detail
-
cls
private final java.lang.Class<?> cls
-
mmf
private final MethodMonitorFactory mmf
-
myContents
private final java.util.Collection<MethodMonitor> myContents
-
-
Constructor Detail
-
MethodMonitorBase
protected MethodMonitorBase(java.lang.String name, java.lang.Class<?> cls)
-
MethodMonitorBase
protected MethodMonitorBase(java.lang.String name, java.lang.Class<?> cls, MethodMonitorFactory mmf)
-
MethodMonitorBase
protected MethodMonitorBase(java.lang.String name, java.lang.Class<?> cls, MethodMonitorFactory mmf, java.util.Set<MethodMonitor> contents)
-
-
Method Detail
-
myClass
public final java.lang.Class<?> myClass()
Description copied from interface:MethodMonitor
The class for which this MethodMonitor is defined.- Specified by:
myClass
in interfaceMethodMonitor
- Returns:
- The class of this MethodMonitor.
-
factory
public final MethodMonitorFactory factory()
Description copied from interface:MethodMonitor
Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor.- Specified by:
factory
in interfaceMethodMonitor
-
contents
public final java.util.Collection<MethodMonitor> contents()
Description copied from interface:MethodMonitor
Returns 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:
contents
in interfaceMethodMonitor
-
-