public static class AbstractStressTestNonBlockingLockManager.TestOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | CORE_POOL_SIZEThe core thread pool size. | 
| static String | DEFAULT_MAX_LOCK_TRIESThe default is 1 try for locks. | 
| static String | DEFAULT_PERCENT_TASK_DEATHSBy default we do not force any tasks to die. | 
| static String | DEFAULT_PREDECLARE_LOCKSBy default the operations will predeclare their locks. | 
| static String | DEFAULT_PRESTART_CORE_THREADS | 
| static String | DEFAULT_SORT_LOCK_REQUESTSBy default lock requests will be sorted. | 
| static String | DEFAULT_SYNCHRONOUS_QUEUE | 
| static String | DEFAULT_SYNCHRONOUS_QUEUE_FAIR | 
| static String | DEFAULT_TASK_TIMEOUTThe default is no timeout for tasks. | 
| static String | DEFAULT_TIMEOUTThe default is no timeout for the test. | 
| static String | MAX_LOCK_TRIESThe maximum #of times that a task will attempt to acquire its locks
 before failing. | 
| static String | MAX_LOCKSThe maximum #of locks that a task will seek to acquire. | 
| static String | MAX_POOL_SIZEThe #of concurrent threads (multi-programming level). | 
| static String | MIN_LOCKSThe minimum #of locks that a task will seek to acquire. | 
| static String | NRESOURCESThe #of declared resources. | 
| static String | NTASKSTotal #of tasks to execute. | 
| static String | PERCENT_TASK_DEATHThe percentage of tasks that will die a  HorridTaskDeathin
 [0.0:1.0] (default is 0.0). | 
| static String | PREDECLARE_LOCKSWhen true, operations MUST pre-declare their locks (default true). | 
| static String | PRESTART_CORE_THREADSWhen  truethe core thread pool will be prestarted when
 theThreadPoolExecutoris created. | 
| static String | SORT_LOCK_REQUESTSWhen true, the resources in a lock request are sorted before the lock
 requests are issued (default true). | 
| static String | SYNCHRONOUS_QUEUEBoolean option determines whether a  SynchronousQueueor an
 unbounded queue will be used for the work queue of theThreadPoolExecutorconsuming the ready tasks (default is
 "false"). | 
| static String | SYNCHRONOUS_QUEUE_FAIRWhen using a  SynchronousQueuefor theThreadPoolExecutor's work queue, this boolean property
 specifies whether or not theSynchronousQueuewill be fair,
 which is a ctor property forSynchronousQueue. | 
| static String | TASK_TIMEOUTThe timeout for the task in (milliseconds) -or-  0iff
 no timeout will be used. | 
| static String | TIMEOUTMaximum 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 Threads 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.