public class JtaCacheCallbackHydraTest extends Object
| Constructor and Description |
|---|
JtaCacheCallbackHydraTest() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkData(com.gemstone.gemfire.cache.Region region,
String key,
String value,
boolean isCommit)
Validate value for key in region
|
static void |
closeTask()
CloseTask to verify that all values in the database are consistent with the GemFire cache
|
static void |
createDatabase()
Start Task (to create database)
|
static void |
dumpDatabase()
EndTask (to display final values in database)
|
static void |
HydraTask_initializeBridgeServer()
Init task for bridgeServers working with JTA edge clients
|
static void |
HydraTask_stopStartServerVM()
Randomly stop and restart vms which are not rebalancing (rebalance must
be part of the clientName).
|
static void |
initTask()
Initialize Cache, region and database table
|
static void |
loadCache()
Use a loader to get the entries from the database into the cache
|
static void |
testTask()
All threads update values transactionally.
|
static void |
validateFinally()
verify that all validates in the database and consistent with the values
in the Cache.
|
public static void createDatabase()
Exceptionpublic static void HydraTask_initializeBridgeServer()
public static void dumpDatabase()
Exceptionpublic static void loadCache()
public static void initTask()
public static void testTask()
public static boolean checkData(com.gemstone.gemfire.cache.Region region,
String key,
String value,
boolean isCommit)
throws Exception
region - - GemFire regionkey - - entry key in region, database and valuesMapvalue - - expected valueisCommit - - true if tx committed (false if rolled back)Exceptionpublic static void closeTask()
public static void validateFinally()
public static void HydraTask_stopStartServerVM()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.