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

public Class MethodMonitorFactoryDefaults

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collection, .HashMap, .HashSet, .List, .Map, .Set, java.util.logging.Level, .Logger, org.glassfish.pfl.basic.algorithm.Algorithms, org.glassfish.pfl.basic.logex.OperationTracer, org.glassfish.pfl.tf.timer.spi.Timer, .TimerEventController, .TimerManager

Author
ken

Field Summary

Modifier and TypeField and Description
private static MethodMonitorFactory
private static MethodMonitorFactory
private static MethodMonitorFactory
private static Map<String, String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
addPrefix(String
A Java package name. Should end in '.' (which will be added if not present).
pkg
,
String
The symbol to substitute for the package. Typically this is 3-8 upper case characters.
symbol
)

Add a new Package prefix symbol to the table.

public static MethodMonitorFactory
pack-priv static MethodMonitor
private static String
public static MethodMonitorFactory
public static <T> MethodMonitorFactory
public static MethodMonitorFactory
noOp()

public static MethodMonitorFactory
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dprintImplback to summary
private static MethodMonitorFactory dprintImpl
noOpImplback to summary
private static MethodMonitorFactory noOpImpl
operationTracerImplback to summary
private static MethodMonitorFactory operationTracerImpl
prefixTableback to summary
private static Map<String, String> prefixTable

Constructor Detail

MethodMonitorFactoryDefaultsback to summary
private MethodMonitorFactoryDefaults()

Method Detail

addPrefixback to summary
public static void addPrefix(String pkg, String symbol)

Add a new Package prefix symbol to the table. This reduces the size of the generated messages in the dprintImpl output.

Parameters
pkg:String

A Java package name. Should end in '.' (which will be added if not present).

symbol:String

The symbol to substitute for the package. Typically this is 3-8 upper case characters.

composeback to summary
public static MethodMonitorFactory compose(final Collection<MethodMonitorFactory> factories)
composeMMback to summary
pack-priv static MethodMonitor composeMM(final List<MethodMonitor> mms)
compressClassNameback to summary
private static String compressClassName(String name)
dprintback to summary
public static MethodMonitorFactory dprint()
makeTimingImplback to summary
public static <T> MethodMonitorFactory makeTimingImpl(final TimerManager<T> tm)
noOpback to summary
public static MethodMonitorFactory noOp()
operationTracerback to summary
public static MethodMonitorFactory operationTracer()