org.glassfish.pfl.tf.spi
Class MethodMonitorFactoryDefaults

java.lang.Object
  extended by org.glassfish.pfl.tf.spi.MethodMonitorFactoryDefaults

public class MethodMonitorFactoryDefaults
extends Object

Author:
ken

Method Summary
static void addPrefix(String pkg, String symbol)
          Add a new Package prefix symbol to the table.
static MethodMonitorFactory compose(Collection<MethodMonitorFactory> factories)
           
static MethodMonitorFactory dprint()
           
static
<T> MethodMonitorFactory
makeTimingImpl(TimerManager<T> tm)
           
static MethodMonitorFactory noOp()
           
static MethodMonitorFactory operationTracer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addPrefix

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 - A Java package name. Should end in '.' (which will be added if not present).
symbol - The symbol to substitute for the package. Typically this is 3-8 upper case characters.

makeTimingImpl

public static <T> MethodMonitorFactory makeTimingImpl(TimerManager<T> tm)

operationTracer

public static MethodMonitorFactory operationTracer()

noOp

public static MethodMonitorFactory noOp()

dprint

public static MethodMonitorFactory dprint()

compose

public static MethodMonitorFactory compose(Collection<MethodMonitorFactory> factories)


Copyright © 2013 Oracle. All Rights Reserved.