Java Reference
In-Depth Information
/**
* The class to use for JDBC connections. Used to hold the
* workload.
*/
public String dbClass;
/**
* What class to use as a workload manager.
*/
public String workloadManager;
/**
* What to do when the spider starts up. This specifies if
* the workload should be cleared, or resumed.
*/
public String startup = STARTUP_CLEAR;
/*
* Specifies a class to be used a filter.ß
*/
public List<String> filter = new ArrayList<String>();
/**
* Load the spider settings from a configuration file.
*
* @param inputFile
* The name of the configuration file.
* @throws IOException
* Thrown if an I/O error occurs.
* @throws SpiderException
* Thrown if there is an error mapping
* configuration items between the file and this
* object.
*/
public void load(String inputFile)
throws IOException, SpiderException {
FileReader f = new FileReader(new File(inputFile));
BufferedReader r = new BufferedReader(f);
String line;
while ((line = r.readLine()) != null) {
try {
parseLine(line);
} catch (IllegalArgumentException e) {
throw (new SpiderException(e));
Search WWH ::




Custom Search