Top Inners Fields Constructors Methods
org.glassfish.pfl.tf.spi

public abstract Class MethodMonitorBase

extends Named
implements MethodMonitor
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.tf.spi.MethodMonitor
Imports
java.util.Collection, .Collections, .HashSet, .Set

Author
ken

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final MethodMonitorFactory
private final Collection<MethodMonitor>

Constructor Summary

AccessConstructor and Description
protected
MethodMonitorBase(final String name, final Class<?> cls)

protected
MethodMonitorBase(final String name, final Class<?> cls, final MethodMonitorFactory mmf)

protected
MethodMonitorBase(final String name, final Class<?> cls, final MethodMonitorFactory mmf, Set<MethodMonitor> contents)

Method Summary

Modifier and TypeMethod and Description
public final Collection<MethodMonitor>
contents()

Implements org.glassfish.pfl.tf.spi.MethodMonitor.contents.

Returns the contents of this method monitor.

public final MethodMonitorFactory
factory()

Implements org.glassfish.pfl.tf.spi.MethodMonitor.factory.

Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor.

public final Class<?>
myClass()

Implements org.glassfish.pfl.tf.spi.MethodMonitor.myClass.

The class for which this MethodMonitor is defined.

Inherited from org.glassfish.pfl.tf.spi.Named:
equalshashCodenametoString

Field Detail

clsback to summary
private final Class<?> cls
mmfback to summary
private final MethodMonitorFactory mmf
myContentsback to summary
private final Collection<MethodMonitor> myContents

Constructor Detail

MethodMonitorBaseback to summary
protected MethodMonitorBase(final String name, final Class<?> cls)
MethodMonitorBaseback to summary
protected MethodMonitorBase(final String name, final Class<?> cls, final MethodMonitorFactory mmf)
MethodMonitorBaseback to summary
protected MethodMonitorBase(final String name, final Class<?> cls, final MethodMonitorFactory mmf, Set<MethodMonitor> contents)

Method Detail

contentsback to summary
public final Collection<MethodMonitor> contents()

Implements org.glassfish.pfl.tf.spi.MethodMonitor.contents.

Doc from org.glassfish.pfl.tf.spi.MethodMonitor.contents.

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.

factoryback to summary
public final MethodMonitorFactory factory()

Implements org.glassfish.pfl.tf.spi.MethodMonitor.factory.

Doc from org.glassfish.pfl.tf.spi.MethodMonitor.factory.

Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor.

myClassback to summary
public final Class<?> myClass()

Implements org.glassfish.pfl.tf.spi.MethodMonitor.myClass.

Doc from org.glassfish.pfl.tf.spi.MethodMonitor.myClass.

The class for which this MethodMonitor is defined.

org.glassfish.pfl.tf.spi back to summary

public Class MethodMonitorBase.MethodMonitorFactorySelfImpl

extends MethodMonitorFactoryBase
Class Inheritance

Field Summary

Modifier and TypeField and Description
private MethodMonitor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MethodMonitor
create(Class<?> cls)

Implements org.glassfish.pfl.tf.spi.MethodMonitorFactory.create.

Return an instance of a MethodMonitor suitable for use in the given class cls, according to the currently registered MethodMonitorFactory instances in the MethodMonitorRegistry.

public void
Inherited from org.glassfish.pfl.tf.spi.MethodMonitorFactoryBase:
contents

Field Detail

mmback to summary
private MethodMonitor mm

Constructor Detail

MethodMonitorFactorySelfImplback to summary
public MethodMonitorFactorySelfImpl(String name)

Method Detail

createback to summary
public MethodMonitor create(Class<?> cls)

Implements org.glassfish.pfl.tf.spi.MethodMonitorFactory.create.

Doc from org.glassfish.pfl.tf.spi.MethodMonitorFactory.create.

Return an instance of a MethodMonitor suitable for use in the given class cls, according to the currently registered MethodMonitorFactory instances in the MethodMonitorRegistry.

initback to summary
public void init(MethodMonitor mm)