Log4j 1.3alpha-3

org.apache.log4j.chainsaw
Interface EventBatchListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
LogPanel

public interface EventBatchListener
extends java.util.EventListener

Implementations of this interface like to be notified of arriving batches of LoggingEvents, but may only be interested in those coming from a particular source

Author:
Paul Smith

Method Summary
 java.lang.String getInterestedIdentifier()
          Returns the string representing the identifier that this instance is only interested in, or null if this instance is interested in ALL events from any identifier
 void receiveEventBatch(java.lang.String identifier, java.util.List eventBatchEntries)
          Implementations receive a list of ChainsawEventBatchEntry instances only if they are interested, that is, if the source of the eventBatch matches this instances interested identifier
 

Method Detail

getInterestedIdentifier

public java.lang.String getInterestedIdentifier()
Returns the string representing the identifier that this instance is only interested in, or null if this instance is interested in ALL events from any identifier

Returns:
String identifier of the interested source

receiveEventBatch

public void receiveEventBatch(java.lang.String identifier,
                              java.util.List eventBatchEntries)
Implementations receive a list of ChainsawEventBatchEntry instances only if they are interested, that is, if the source of the eventBatch matches this instances interested identifier

Parameters:
eventBatchEntries - List of ChainsawEventBatchEntry instances
identifier - the identifier this list of eventBatchEntrys is associated with

Log4j 1.3alpha-3

Copyright 2000-2003 Apache Software Foundation.