org.rhq.helpers.perftest.support.input
Class CsvInput

java.lang.Object
  extended by org.rhq.helpers.perftest.support.input.CsvInput
All Implemented Interfaces:
Input
Direct Known Subclasses:
ZippedCsvInput

public class CsvInput
extends Object
implements Input

Implements the Input interface for the set of CSV files using the CsvProducer.

Author:
Lukas Krejci

Constructor Summary
CsvInput(File directory)
           
 
Method Summary
 void close()
          Closes any system resources that were used by the producer and prepares the input to provide a new data set producer with the call to Input.getProducer().
protected  org.dbunit.dataset.csv.CsvProducer getCsvProducer()
           
protected  File getDirectory()
           
 org.dbunit.dataset.stream.IDataSetProducer getProducer()
          The returned producer is assumed to produce a data set that can then be fed into a database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvInput

public CsvInput(File directory)
Method Detail

getDirectory

protected File getDirectory()

getCsvProducer

protected org.dbunit.dataset.csv.CsvProducer getCsvProducer()

getProducer

public org.dbunit.dataset.stream.IDataSetProducer getProducer()
                                                       throws Exception
Description copied from interface: Input
The returned producer is assumed to produce a data set that can then be fed into a database. (the specification of the producer is left for the subclasses to define).

Specified by:
getProducer in interface Input
Returns:
the dbUnit data set producer
Throws:
Exception

close

public void close()
           throws IOException
Description copied from interface: Input
Closes any system resources that were used by the producer and prepares the input to provide a new data set producer with the call to Input.getProducer().

Specified by:
close in interface Input
Throws:
IOException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.