public static final class SequenceGeneratorConcurrency.SGClient extends java.lang.Object implements Client
Modifier and Type | Field and Description |
---|---|
private static int |
_clientCount |
private int |
_clientNumber |
private java.sql.Connection |
_conn |
private int |
_errorCount |
private java.util.HashMap<java.lang.String,int[]> |
_errorLog |
private SequenceGeneratorConcurrency.LoadOptions |
_loadOptions |
private java.sql.PreparedStatement[][] |
_psArray |
private java.util.Random |
_randomNumberGenerator |
private static int |
_totalErrorCount |
private static int |
_totalTransactionCount |
private int |
_transactionCount |
Constructor and Description |
---|
SGClient() |
Modifier and Type | Method and Description |
---|---|
private void |
addError(java.lang.Throwable t)
Bump the error count for this problem
|
private java.sql.PreparedStatement |
close(java.sql.PreparedStatement ps,
boolean debugging) |
private java.sql.ResultSet |
close(java.sql.ResultSet rs,
boolean debugging) |
void |
doWork()
A transaction performed by this thread
|
private int |
getPositiveRandomNumber() |
void |
init(java.sql.Connection conn)
Create the PreparedStatements needed by the test run.
|
void |
printReport(java.io.PrintStream out)
Print a report from the test run.
|
private SequenceGeneratorConcurrency.LoadOptions _loadOptions
private java.sql.Connection _conn
private java.sql.PreparedStatement[][] _psArray
private java.util.Random _randomNumberGenerator
private int _clientNumber
private int _transactionCount
private int _errorCount
private java.util.HashMap<java.lang.String,int[]> _errorLog
private static int _clientCount
private static int _totalErrorCount
private static int _totalTransactionCount
public void init(java.sql.Connection conn) throws java.sql.SQLException
public void doWork() throws java.sql.SQLException
private java.sql.ResultSet close(java.sql.ResultSet rs, boolean debugging)
private java.sql.PreparedStatement close(java.sql.PreparedStatement ps, boolean debugging)
private int getPositiveRandomNumber()
public void printReport(java.io.PrintStream out)
Client
printReport
in interface Client
out
- stream to print the report toprivate void addError(java.lang.Throwable t)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.