class StressMultiTest.StressMultiRunnable
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
(package private) java.sql.Connection |
con |
(package private) java.lang.String |
name |
(package private) long |
runtime |
(package private) long |
starttime |
| Constructor and Description |
|---|
StressMultiRunnable(java.lang.String name,
int minutes) |
| Modifier and Type | Method and Description |
|---|---|
private void |
create(java.lang.String table)
Create a table with the given name and then drop it
|
private void |
insert(java.lang.String table)
Insert a random value into the given table.
|
private void |
roll(java.lang.String table)
insert a value into the given table, then rollback.
|
void |
run() |
private void |
select(java.lang.String table)
Select * from the given table.
|
private void |
update(java.lang.String table)
Update the given table.
|
java.lang.String name
java.sql.Connection con
long starttime
long runtime
public StressMultiRunnable(java.lang.String name,
int minutes)
public void run()
run in interface java.lang.Runnableprivate void create(java.lang.String table)
throws java.sql.SQLException
table - java.sql.SQLExceptionprivate void insert(java.lang.String table)
throws java.sql.SQLException
table - java.sql.SQLExceptionprivate void roll(java.lang.String table)
throws java.sql.SQLException
table - java.sql.SQLExceptionprivate void select(java.lang.String table)
throws java.sql.SQLException
table - java.sql.SQLExceptionprivate void update(java.lang.String table)
throws java.sql.SQLException
table - java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.