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.Runnable
private void create(java.lang.String table) throws java.sql.SQLException
table
- java.sql.SQLException
private void insert(java.lang.String table) throws java.sql.SQLException
table
- java.sql.SQLException
private void roll(java.lang.String table) throws java.sql.SQLException
table
- java.sql.SQLException
private void select(java.lang.String table) throws java.sql.SQLException
table
- java.sql.SQLException
private void update(java.lang.String table) throws java.sql.SQLException
table
- java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.