|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttests.TestDriver
class TestDriver
| Nested Class Summary | |
|---|---|
protected class |
TestDriver.CountData
Counter values saved with a particular description. |
| Field Summary | |
|---|---|
protected java.lang.String |
BUF_POLICY
Default buffer pool replacement policy |
protected int |
BUF_SIZE
Default buffer pool size (in pages) |
protected java.util.ArrayList<TestDriver.CountData> |
counts
Incremental history of the performance counters; odd elements are snapshots before the tests, and even elements are after. |
protected java.lang.String |
DB_PATH
Default database file name. |
protected int |
DB_SIZE
Default database size (in pages). |
protected static boolean |
FAIL
Failure value, for readability. |
protected static boolean |
PASS
Success value, for readability. |
protected java.util.Random |
random
Random generator; use the same seed to make tests deterministic. |
| Fields inherited from interface global.GlobalConst |
|---|
EMPTY_SLOT, FIRST_PAGEID, INVALID_PAGEID, MAX_COLSIZE, MAX_TUPSIZE, NAME_MAXLEN, PAGE_SIZE, PIN_DISKIO, PIN_MEMCPY, UNPIN_CLEAN, UNPIN_DIRTY |
| Constructor Summary | |
|---|---|
TestDriver()
|
|
| Method Summary | |
|---|---|
protected void |
create_minibase()
Creates a new database on the disk. |
protected void |
delete_minibase()
Deletes the database files from the disk. |
protected void |
initCounts()
Resets the performance counter history. |
protected void |
initRandom()
Resets the random generator to the default seed. |
protected void |
load_minibase()
Loads an existing database from the disk. |
protected void |
printCounters()
Prints the performance counters (i.e. |
protected void |
printSummary(int sepcnt)
Prints the complete history of the performance counters. |
protected void |
saveCounts(java.lang.String desc)
Saves the current performance counters, given the description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final boolean PASS
protected static final boolean FAIL
protected java.lang.String DB_PATH
protected int DB_SIZE
protected int BUF_SIZE
protected java.lang.String BUF_POLICY
protected java.util.Random random
protected java.util.ArrayList<TestDriver.CountData> counts
| Constructor Detail |
|---|
TestDriver()
| Method Detail |
|---|
protected void delete_minibase()
protected void create_minibase()
protected void load_minibase()
protected void initRandom()
protected void initCounts()
protected void saveCounts(java.lang.String desc)
protected void printCounters()
protected void printSummary(int sepcnt)
sepcnt - how many lines to print before each separator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||