net.sf.logdistiller
Class FactoryMultiplexer

java.lang.Object
  extended by net.sf.logdistiller.LogEvent.Factory
      extended by net.sf.logdistiller.FactoryMultiplexer

public class FactoryMultiplexer
extends LogEvent.Factory

Combines logevents fetched from multiple factories. The resulting factory chooses the next logevent according to the order provided.


Field Summary
 
Fields inherited from class net.sf.logdistiller.LogEvent.Factory
description, logSource, NEWLINE
 
Constructor Summary
FactoryMultiplexer(LogType.Description description)
           
FactoryMultiplexer(LogType.Description description, Comparator logeventComparator)
           
 
Method Summary
 void addFactory(LogEvent.Factory factory)
           
protected  LogEvent readNextEvent()
           
 
Methods inherited from class net.sf.logdistiller.LogEvent.Factory
getDescription, getLogSource, nextEvent, pushbackLastEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryMultiplexer

public FactoryMultiplexer(LogType.Description description)

FactoryMultiplexer

public FactoryMultiplexer(LogType.Description description,
                          Comparator logeventComparator)
Method Detail

addFactory

public void addFactory(LogEvent.Factory factory)

readNextEvent

protected LogEvent readNextEvent()
                          throws IOException,
                                 ParseException
Specified by:
readNextEvent in class LogEvent.Factory
Throws:
IOException
ParseException


Copyright © 2004-2009. All Rights Reserved.