org.logicalcobwebs.dbscript
Interface CommandIF

All Known Implementing Classes:
Command

public interface CommandIF

An SQL command to run.

Since:
Proxool 0.5
Version:
$Revision: 1.5 $, $Date: 2003/03/03 11:12:03 $
Author:
Bill Horsman (bill@logicalcobwebs.co.uk), $Author: billhorsman $ (current maintainer)

Method Summary
 int getLoad()
          How many "threads" to simulate.
 int getLoops()
          The number of loops to perform.
 java.lang.String getName()
          A convenient name to call this command to help logging.
 java.lang.String getSql()
          The SQL statement to run
 boolean isIgnoreException()
          If true then errors that occur during this command are ignored silently and do not stop the script running.
 boolean isLogException()
          If true then errors that occur during this command are logged as debug messages but do not stop the script running.
 

Method Detail

getSql

java.lang.String getSql()
The SQL statement to run

Returns:
sql

getLoad

int getLoad()
How many "threads" to simulate. See Script to see how it actually implements thread-like behaviour.

Returns:
load

getLoops

int getLoops()
The number of loops to perform. Each loop will run the sql load times.

Returns:
loops

isIgnoreException

boolean isIgnoreException()
If true then errors that occur during this command are ignored silently and do not stop the script running.

Returns:
true if exceptions should be ignored

isLogException

boolean isLogException()
If true then errors that occur during this command are logged as debug messages but do not stop the script running.

Returns:
true if exceptions should be logged

getName

java.lang.String getName()
A convenient name to call this command to help logging.

Returns:
name