org.rhq.helpers.perftest.support
Class Settings

java.lang.Object
  extended by org.rhq.helpers.perftest.support.Settings

public class Settings
extends Object

Author:
Lukas Krejci

Field Summary
static String DATABASE_DRIVER_CLASS_PROPERTY
           
static String DATABASE_PASSWORD_PROPERTY
           
static String DATABASE_URL_PROPERTY
           
static String DATABASE_USER_PROPERTY
           
static String NULL_REPLACEMENT
           
 
Method Summary
static Input getInputObject(String fileFormat, String inputSpec)
          An analogous method to getOutputObject(String, String) only handling input.
static Output getOutputObject(String fileFormat, String outputSpec)
          Creates an "output object" which is a wrapper object able to create a dbUnit consumer that is then used to "consume" the database data and produce an output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_DRIVER_CLASS_PROPERTY

public static final String DATABASE_DRIVER_CLASS_PROPERTY
See Also:
Constant Field Values

DATABASE_URL_PROPERTY

public static final String DATABASE_URL_PROPERTY
See Also:
Constant Field Values

DATABASE_USER_PROPERTY

public static final String DATABASE_USER_PROPERTY
See Also:
Constant Field Values

DATABASE_PASSWORD_PROPERTY

public static final String DATABASE_PASSWORD_PROPERTY
See Also:
Constant Field Values

NULL_REPLACEMENT

public static final String NULL_REPLACEMENT
See Also:
Constant Field Values
Method Detail

getOutputObject

public static Output getOutputObject(String fileFormat,
                                     String outputSpec)
                              throws IOException
Creates an "output object" which is a wrapper object able to create a dbUnit consumer that is then used to "consume" the database data and produce an output. The wrapper can then close any system resources that the consumer used.

For XML format, the outputSpec can be either a file name or null (in which case the xml is written to standard output).

For CSV format, the outputSpec is a path to a directory (possibly non-existing) to which the CSV files corresponding to database tables will be written.

Parameters:
fileFormat - one of the values specified in FileFormat (case-insensitive)
zipped - true if the output should be ZIP compressed
outputSpec - format dependent specifier of output location
Returns:
an output object
Throws:
IOException

getInputObject

public static Input getInputObject(String fileFormat,
                                   String inputSpec)
                            throws IOException
An analogous method to getOutputObject(String, String) only handling input.

Parameters:
fileFormat -
inputSpec -
Returns:
Throws:
IOException


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