public class GemFireTxCallback extends Object
| Constructor and Description |
|---|
GemFireTxCallback() |
| 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()
create database table
|
static void |
dropOracleTable()
drop database table (CLOSETASK)
|
static void |
dumpDatabase()
dump database table
|
static Connection |
getDBConnection() |
static String |
getDBTableName() |
static void |
initTask()
Initialize Cache, region and database table
|
static void |
setDBTableName(String aName)
accessor methods for oracle tableName (dynamically created for oracle tests)
|
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 Connection getDBConnection() throws Exception
Exceptionpublic static void createDatabase()
public static void dropOracleTable()
public static void setDBTableName(String aName)
public static String getDBTableName()
public static void dumpDatabase()
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()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.