public static class AbstractStressTestNonBlockingLockManager.TestOptions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CORE_POOL_SIZE
The core thread pool size.
|
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_PRESTART_CORE_THREADS |
static String |
DEFAULT_SORT_LOCK_REQUESTS
By default lock requests will be sorted.
|
static String |
DEFAULT_SYNCHRONOUS_QUEUE |
static String |
DEFAULT_SYNCHRONOUS_QUEUE_FAIR |
static String |
DEFAULT_TASK_TIMEOUT
The default is no timeout for tasks.
|
static String |
DEFAULT_TIMEOUT
The default is no timeout for the test.
|
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 |
MAX_POOL_SIZE
The #of concurrent threads (multi-programming level).
|
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 |
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 |
PRESTART_CORE_THREADS
When
true the core thread pool will be prestarted when
the ThreadPoolExecutor is created. |
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 |
SYNCHRONOUS_QUEUE
Boolean option determines whether a
SynchronousQueue or an
unbounded queue will be used for the work queue of the
ThreadPoolExecutor consuming the ready tasks (default is
"false"). |
static String |
SYNCHRONOUS_QUEUE_FAIR
When using a
SynchronousQueue for the
ThreadPoolExecutor 's work queue, this boolean property
specifies whether or not the SynchronousQueue will be fair,
which is a ctor property for SynchronousQueue . |
static String |
TASK_TIMEOUT
The timeout for the task in (milliseconds) -or-
0 iff
no timeout will be used. |
static String |
TIMEOUT
Maximum amount of time that the test will run (seconds) or ZERO (0)
if there is no timeout.
|
Constructor and Description |
---|
AbstractStressTestNonBlockingLockManager.TestOptions() |
public static final String TIMEOUT
public static final String SYNCHRONOUS_QUEUE
SynchronousQueue
or an
unbounded queue will be used for the work queue of the
ThreadPoolExecutor
consuming the ready tasks (default is
"false").
Note: The ThreadPoolExecutor
must not block when we submit a
Runnable
to it from
NonBlockingLockManagerWithNewDesign.ready(Runnable)
. This
goal can be achieved either by having a SynchronousQueue
and
an unbounded MAX_POOL_SIZE
-or- by using an unbounded work
queue. In the former case new Thread
s will be created on
demand. In the latter can tasks will be queued until the
CORE_POOL_SIZE
threads can process them.
ThreadPoolExecutor
,
Constant Field Valuespublic static final String SYNCHRONOUS_QUEUE_FAIR
SynchronousQueue
for the
ThreadPoolExecutor
's work queue, this boolean property
specifies whether or not the SynchronousQueue
will be fair,
which is a ctor property for SynchronousQueue
.public static final String CORE_POOL_SIZE
public static final String MAX_POOL_SIZE
CORE_POOL_SIZE
. The default value is whatever was
specified for CORE_POOL_SIZE
. The value is ignored if you
specify SYNCHRONOUS_QUEUE
as true
and an
unbounded thread pool is used instead.public static final String PRESTART_CORE_THREADS
true
the core thread pool will be prestarted when
the ThreadPoolExecutor
is created.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 TASK_TIMEOUT
0
iff
no timeout will be used.public static final String MAX_LOCK_TRIES
public static final String PREDECLARE_LOCKS
Note: The NonBlockingLockManager
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_SYNCHRONOUS_QUEUE
public static final String DEFAULT_SYNCHRONOUS_QUEUE_FAIR
public static final String DEFAULT_PRESTART_CORE_THREADS
public static final String DEFAULT_MAX_LOCK_TRIES
public static final String DEFAULT_TASK_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.