org.glassfish.pfl.tf.timer.impl
Class LogEventHandlerImpl

java.lang.Object
  extended by org.glassfish.pfl.tf.timer.spi.NamedBase
      extended by org.glassfish.pfl.tf.timer.impl.LogEventHandlerImpl
All Implemented Interfaces:
Iterable<TimerEvent>, LogEventHandler, Named, TimerEventHandler

public class LogEventHandlerImpl
extends NamedBase
implements LogEventHandler


Method Summary
 void clear()
          Discard the contents of the log.
 void display(PrintStream arg, String msg)
          Display the contents of this log in formatted form to the PrintStream.
 Iterator<TimerEvent> iterator()
           
 void notify(TimerEvent event)
           
 
Methods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase
equals, factory, hashCode, name, setFactory, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Named
factory, name
 

Method Detail

iterator

public Iterator<TimerEvent> iterator()
Specified by:
iterator in interface Iterable<TimerEvent>

notify

public void notify(TimerEvent event)
Specified by:
notify in interface TimerEventHandler

clear

public void clear()
Description copied from interface: LogEventHandler
Discard the contents of the log.

Specified by:
clear in interface LogEventHandler

display

public void display(PrintStream arg,
                    String msg)
Description copied from interface: LogEventHandler
Display the contents of this log in formatted form to the PrintStream.

Specified by:
display in interface LogEventHandler


Copyright © 2013 Oracle. All Rights Reserved.