org.weborganic.bastille.flint.helpers
Class QuietListener

java.lang.Object
  extended by org.weborganic.bastille.flint.helpers.QuietListener
All Implemented Interfaces:
IndexListener

public final class QuietListener
extends Object
implements IndexListener

A Flint listener which reports less events than the default.

Since:
0.8.6

Constructor Summary
QuietListener(Logger logger)
          Creates a new logger for the specified Logger.
 
Method Summary
 void endBatch()
           
 void endJob(IndexJob job)
           
 void error(IndexJob job, String message, Throwable throwable)
           
 void startBatch()
           
 void startJob(IndexJob job)
           
 void warn(IndexJob job, String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuietListener

public QuietListener(Logger logger)
Creates a new logger for the specified Logger.

Parameters:
logger - The underlying logger to use.
Method Detail

startJob

public void startJob(IndexJob job)
Specified by:
startJob in interface IndexListener

warn

public void warn(IndexJob job,
                 String message)
Specified by:
warn in interface IndexListener

error

public void error(IndexJob job,
                  String message,
                  Throwable throwable)
Specified by:
error in interface IndexListener

endJob

public void endJob(IndexJob job)
Specified by:
endJob in interface IndexListener

startBatch

public void startBatch()
Specified by:
startBatch in interface IndexListener

endBatch

public void endBatch()
Specified by:
endBatch in interface IndexListener