org.databene.benerator.consumer
Class LoggingConsumer

java.lang.Object
  extended by org.databene.benerator.consumer.AbstractConsumer
      extended by org.databene.benerator.consumer.LoggingConsumer
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, Consumer

public class LoggingConsumer
extends AbstractConsumer

A Consumer that logs the entities that it receives at info level.

Created: 26.08.2007 14:52:40

Since:
0.4.0
Author:
Volker Bergmann

Constructor Summary
LoggingConsumer()
           
 
Method Summary
 void close()
          When called, the implementor has to close and free all resources.
 void finishProductConsumption(java.lang.Object object)
           
 void flush()
          Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far.
 void startProductConsumption(java.lang.Object object)
           
 
Methods inherited from class org.databene.benerator.consumer.AbstractConsumer
finishConsuming, startConsuming, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingConsumer

public LoggingConsumer()
Method Detail

startProductConsumption

public void startProductConsumption(java.lang.Object object)
Specified by:
startProductConsumption in class AbstractConsumer

finishProductConsumption

public void finishProductConsumption(java.lang.Object object)
Overrides:
finishProductConsumption in class AbstractConsumer

flush

public void flush()
Description copied from interface: Consumer
Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far. In Benerator descriptor files, the flushing behavior is controlled by the pageSize attribute.

Specified by:
flush in interface java.io.Flushable
Specified by:
flush in interface Consumer
Overrides:
flush in class AbstractConsumer

close

public void close()
Description copied from interface: Consumer
When called, the implementor has to close and free all resources. It will not receive any more calls.

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface Consumer
Overrides:
close in class AbstractConsumer


Copyright © 2013. All Rights Reserved.