org.apache.commons.pipeline.listener
Class ObjectProcessedEventCounter

java.lang.Object
  extended by org.apache.commons.pipeline.listener.ObjectProcessedEventCounter
All Implemented Interfaces:
EventListener, StageEventListener

public class ObjectProcessedEventCounter
extends Object
implements StageEventListener

This listener keeps track of the number of ObjectProcessedEvents received from each Stage


Constructor Summary
ObjectProcessedEventCounter()
           
 
Method Summary
 Map<Stage,Integer> getCounts()
           
 void notify(EventObject evo)
          Notify this listener of a StageEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectProcessedEventCounter

public ObjectProcessedEventCounter()
Method Detail

notify

public void notify(EventObject evo)
Description copied from interface: StageEventListener
Notify this listener of a StageEvent

Specified by:
notify in interface StageEventListener
Parameters:
evo - The event to be handled. Listeners should gracefully ignore any events that they do not know how to handle.

getCounts

public Map<Stage,Integer> getCounts()


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.