public static class TestLockManager.TestOptions extends Object
TestLockManager.doComparisonTest(Properties)
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOCK_TIMEOUT
The default is no timeout for locks.
|
static String |
DEFAULT_MAX_LOCK_TRIES
The default is 1 try for locks.
|
static String |
DEFAULT_PERCENT_TASK_DEATHS
By default we do not force any tasks to die.
|
static String |
DEFAULT_PREDECLARE_LOCKS
By default the operations will predeclare their locks.
|
static String |
DEFAULT_SORT_LOCK_REQUESTS
By default lock requests will be sorted.
|
static String |
DEFAULT_TIMEOUT
The default is no timeout for the test.
|
static String |
LOCK_TIMEOUT
The timeout when attempting to acquire a lock (milliseconds) -or-
0 iff no timeout will be used. |
static String |
MAX_LOCK_TRIES
The maximum #of times that a task will attempt to acquire its locks
before failing.
|
static String |
MAX_LOCKS
The maximum #of locks that a task will seek to acquire.
|
static String |
MIN_LOCKS
The minimum #of locks that a task will seek to acquire.
|
static String |
NRESOURCES
The #of declared resources.
|
static String |
NTASKS
Total #of tasks to execute.
|
static String |
NTHREADS
The #of concurrent threads (multi-programming level).
|
static String |
PERCENT_TASK_DEATH
The percentage of tasks that will die a
HorridTaskDeath in
[0.0:1.0] (default is 0.0). |
static String |
PREDECLARE_LOCKS
When true, operations MUST pre-declare their locks (default true).
|
static String |
SORT_LOCK_REQUESTS
When true, the resources in a lock request are sorted before the lock
requests are issued (default true).
|
static String |
TIMEOUT
Maximum amount of time that the test will run (seconds).
|
Constructor and Description |
---|
TestLockManager.TestOptions() |
public static final String TIMEOUT
public static final String NTHREADS
public static final String NTASKS
public static final String PERCENT_TASK_DEATH
HorridTaskDeath
in
[0.0:1.0] (default is 0.0). This is used to stress the error handling
mechanisms.public static final String NRESOURCES
public static final String MIN_LOCKS
public static final String MAX_LOCKS
public static final String LOCK_TIMEOUT
0
iff no timeout will be used.public static final String MAX_LOCK_TRIES
public static final String PREDECLARE_LOCKS
Note: The LockManager
uses this information to avoid
deadlocks by the simple expediency of sorting the resources in each
lock request into a common order. With this option deadlocks are NOT
possible but all locks MUST be pre-declared by the operation before
it begins to execute.
public static final String SORT_LOCK_REQUESTS
TxDag
and the
handling of deadlocks when they are detected.public static final String DEFAULT_TIMEOUT
public static final String DEFAULT_MAX_LOCK_TRIES
public static final String DEFAULT_LOCK_TIMEOUT
public static final String DEFAULT_PERCENT_TASK_DEATHS
public static final String DEFAULT_PREDECLARE_LOCKS
public static final String DEFAULT_SORT_LOCK_REQUESTS
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.