public class ValidateTasks extends Object
ValidateBlackboard to
validate the contents of a GemFire cache Region. The
region is configured and created using a DistCacheFactory.
The keys of the region are generated using a NameFactory.
The values are generated using an ObjectHelper.ValidatePrms| Constructor and Description |
|---|
ValidateTasks() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doEntryOperations()
A TASK that chooses a random operation to perform on the cache.
|
static void |
ensureNotInUse()
An END task that examines the contents of the
ValidateBlackboard to make sure that there no entry is still "in
use". |
static void |
initializeVM()
An INIT task that creates the Region used by this test
|
static void |
populateRegion()
An INIT task that places 100 entries into the region.
|
static void |
validateRegion()
A CLOSE task that validates the contents of the region.
|
public static void initializeVM()
throws Exception
Exceptionpublic static void populateRegion()
throws Exception
Exceptionpublic static void doEntryOperations()
throws Exception
ValidateBlackboard is updated appropriately.
Operations are performed until a given number of seconds
have passed.ExceptionValidatePrms.getEntryOperation()public static void validateRegion()
throws Exception
Exceptionpublic static void ensureNotInUse()
throws Exception
ValidateBlackboard to make sure that there no entry is still "in
use". If so, then there was a problem with the test.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.