public class StressDLockClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StressDLockClient.SerializableObject
Serializable Object class
|
| Constructor and Description |
|---|
StressDLockClient() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCacheTask()
closeCacheTask: General task to unhook the vm from the distributed cache.
|
static void |
createCacheTask()
createCacheTask: General task to hook the vm to the distributed cache.
|
static void |
createDataTask()
createDataTask TASK: create
DLockPrms.numLocks objects to lock
and put them in the GemFire Cache |
static void |
lockByTidTask()
lockByTidTask TASK: for
DLockPrms.iterations, clients lock the object
at index tid%DLockPrms.numLocks, sleep DLockPrms#sleepMs if
{@link DLockPrms#sleep} is true, then unlcok. |
public static void createCacheTask()
public static void closeCacheTask()
public static void createDataTask()
DLockPrms.numLocks objects to lock
and put them in the GemFire Cachepublic static void lockByTidTask()
DLockPrms.iterations, clients lock the object
at index tid%DLockPrms.numLocks, sleep DLockPrms#sleepMs if
{@link DLockPrms#sleep} is true, then unlcok. There is no contention if
the number of clients is less than or equal to the number of locks.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.