OmniSciDB
a5dc49c757
|
Classes | |
class | MonitoringThread |
class | SqlCommandThread |
Public Member Functions | |
abstract List< SqlCommandThread[]> | createTestThreads () |
abstract void | runTests (final List< SqlCommandThread[]> tests) throws Exception |
abstract void | setUpTests () throws Exception |
abstract void | cleanUpTests (final List< SqlCommandThread[]> tests) throws Exception |
void | testConcurrency () throws Exception |
HeavyDBTestClient | getAdminClient (String db) throws Exception |
void | runAndLog (HeavyDBTestClient client, String sql) throws Exception |
Static Public Member Functions | |
static boolean | deleteDirectory (File dir) |
static int[] | getPorts () |
static int | getNumThreads () |
static int | getNumIterations () |
static boolean | getEnableHeavyConnect () |
static boolean | getEnableMonitorThread () |
static String | getConfig () |
static CyclicBarrier | createBarrier (int numThreadsToWait) |
static void | printErrors (ArrayList< String > exceptionTexts) |
static int | getRandomPort () |
Public Attributes | |
CyclicBarrier | barrier |
ArrayList< String > | exceptionTexts = new ArrayList<String>() |
Static Public Attributes | |
static final String | db = "TestDB" |
static final int | defaultPort = 6274 |
static final boolean | defaultEnableHeavyConnect = true |
static int | numThreads = defaultNumThreads |
static boolean | enableHeavyConnect = defaultEnableHeavyConnect |
static Logger | logger = null |
static String | testName = "" |
static int[] | ports = null |
Static Package Attributes | |
static final String | userName = "admin" |
static final String | password = "HyperInteractive" |
static final String | localhost = "localhost" |
static final String | defaultDb = "heavyai" |
static final int | defaultNumThreads = 5 |
static final int | defaultNumIterations = 5 |
static final boolean | defaultEnableMonitorThread = false |
static int | numIterations = defaultNumIterations |
static boolean | enableMonitorThread = defaultEnableMonitorThread |
static Random | rand = new Random() |
Definition at line 33 of file ConcurrencyTest.java.
|
pure virtual |
Implemented in com.mapd.tests.DdlConcurrencyTest.
Referenced by com.mapd.tests.ConcurrencyTest.testConcurrency().
|
inlinestatic |
Definition at line 141 of file ConcurrencyTest.java.
References run.
Referenced by com.mapd.tests.DdlConcurrencyTest.runTests().
|
pure virtual |
Implemented in com.mapd.tests.DdlConcurrencyTest.
Referenced by com.mapd.tests.ConcurrencyTest.testConcurrency().
|
inlinestatic |
Definition at line 56 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.cleanUpTests().
|
inline |
Definition at line 187 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.db, com.mapd.tests.ConcurrencyTest.localhost, com.mapd.tests.ConcurrencyTest.password, com.mapd.tests.ConcurrencyTest.ports, and com.mapd.tests.ConcurrencyTest.userName.
Referenced by com.mapd.tests.DdlConcurrencyTest.cleanUpTests(), and com.mapd.tests.DdlConcurrencyTest.setUpTests().
|
inlinestatic |
Definition at line 129 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.enableHeavyConnect, com.mapd.tests.ConcurrencyTest.enableMonitorThread, com.mapd.tests.ConcurrencyTest.numIterations, com.mapd.tests.ConcurrencyTest.numThreads, com.mapd.tests.ConcurrencyTest.ports, and com.mapd.tests.ConcurrencyTest.testName.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure().
|
inlinestatic |
Definition at line 108 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.defaultEnableHeavyConnect.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure().
|
inlinestatic |
Definition at line 119 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.defaultEnableMonitorThread.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure().
|
inlinestatic |
Definition at line 98 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.defaultNumIterations.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure().
|
inlinestatic |
Definition at line 88 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.defaultNumThreads.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure().
|
inlinestatic |
Definition at line 69 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.defaultPort.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure().
|
inlinestatic |
Definition at line 161 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.ports.
Referenced by com.mapd.tests.ConcurrencyTest.SqlCommandThread.SqlCommandThread().
|
inlinestatic |
Definition at line 151 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.runTests().
|
inline |
Definition at line 191 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.cleanUpTests(), and com.mapd.tests.DdlConcurrencyTest.setUpTests().
|
pure virtual |
Implemented in com.mapd.tests.DdlConcurrencyTest.
Referenced by com.mapd.tests.ConcurrencyTest.testConcurrency().
|
pure virtual |
Implemented in com.mapd.tests.DdlConcurrencyTest.
Referenced by com.mapd.tests.ConcurrencyTest.testConcurrency().
|
inline |
Definition at line 172 of file ConcurrencyTest.java.
References com.mapd.tests.ConcurrencyTest.cleanUpTests(), com.mapd.tests.ConcurrencyTest.createTestThreads(), com.mapd.tests.ConcurrencyTest.logger, com.mapd.tests.ConcurrencyTest.runTests(), com.mapd.tests.ConcurrencyTest.setUpTests(), and com.mapd.tests.ConcurrencyTest.testName.
CyclicBarrier com.mapd.tests.ConcurrencyTest.barrier |
Definition at line 53 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.runTests().
|
static |
Definition at line 34 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.cleanUpTests(), com.mapd.tests.DdlConcurrencyTest.createTestThreads(), com.mapd.tests.ConcurrencyTest.getAdminClient(), com.mapd.tests.ConcurrencyTest.SqlCommandThread.run(), and com.mapd.tests.DdlConcurrencyTest.setUpTests().
|
staticpackage |
Definition at line 36 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.cleanUpTests(), and com.mapd.tests.DdlConcurrencyTest.setUpTests().
|
static |
Definition at line 39 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getEnableHeavyConnect().
|
staticpackage |
Definition at line 40 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getEnableMonitorThread().
|
staticpackage |
Definition at line 38 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getNumIterations().
|
staticpackage |
Definition at line 37 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getNumThreads().
|
static |
Definition at line 37 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getPorts().
|
static |
Definition at line 43 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), com.mapd.tests.DdlConcurrencyTest.createTestThreads(), com.mapd.tests.ConcurrencyTest.getConfig(), and com.mapd.tests.DdlConcurrencyTest.setUpTests().
|
staticpackage |
Definition at line 44 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), com.mapd.tests.ConcurrencyTest.getConfig(), and com.mapd.tests.DdlConcurrencyTest.runTests().
ArrayList<String> com.mapd.tests.ConcurrencyTest.exceptionTexts = new ArrayList<String>() |
Definition at line 54 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.runTests().
|
staticpackage |
Definition at line 35 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getAdminClient(), and com.mapd.tests.ConcurrencyTest.SqlCommandThread.run().
|
static |
Definition at line 49 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), and com.mapd.tests.ConcurrencyTest.testConcurrency().
|
staticpackage |
Definition at line 42 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), com.mapd.tests.ConcurrencyTest.getConfig(), and com.mapd.tests.ConcurrencyTest.SqlCommandThread.SqlCommandThread().
|
static |
Definition at line 42 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), com.mapd.tests.ConcurrencyTest.getConfig(), com.mapd.tests.DdlConcurrencyTest.makeTests(), and com.mapd.tests.DdlConcurrencyTest.runTests().
|
staticpackage |
Definition at line 35 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getAdminClient(), and com.mapd.tests.ConcurrencyTest.SqlCommandThread.run().
|
static |
Definition at line 51 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), com.mapd.tests.ConcurrencyTest.getAdminClient(), com.mapd.tests.ConcurrencyTest.getConfig(), and com.mapd.tests.ConcurrencyTest.getRandomPort().
|
staticpackage |
Definition at line 46 of file ConcurrencyTest.java.
|
static |
Definition at line 50 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.DdlConcurrencyTest.configure(), com.mapd.tests.ConcurrencyTest.getConfig(), and com.mapd.tests.ConcurrencyTest.testConcurrency().
|
staticpackage |
Definition at line 34 of file ConcurrencyTest.java.
Referenced by com.mapd.tests.ConcurrencyTest.getAdminClient(), heavydb.thrift.Heavy.get_all_roles_for_user_args.read(), heavydb.thrift.Heavy.get_all_effective_roles_for_user_args.read(), com.mapd.tests.ConcurrencyTest.SqlCommandThread.run(), heavydb.thrift.Heavy.get_all_roles_for_user_args.write(), and heavydb.thrift.Heavy.get_all_effective_roles_for_user_args.write().