public class GemFireTxCallback
extends java.lang.Object
| Constructor and Description |
|---|
GemFireTxCallback() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkData(com.gemstone.gemfire.cache.Region region,
java.lang.String key,
java.lang.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 java.sql.Connection |
getDBConnection() |
static java.lang.String |
getDBTableName() |
static void |
initTask()
Initialize Cache, region and database table
|
static void |
setDBTableName(java.lang.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 java.sql.Connection getDBConnection()
throws java.lang.Exception
java.lang.Exceptionpublic static void createDatabase()
public static void dropOracleTable()
public static void setDBTableName(java.lang.String aName)
public static java.lang.String getDBTableName()
public static void dumpDatabase()
public static void initTask()
public static void testTask()
public static boolean checkData(com.gemstone.gemfire.cache.Region region,
java.lang.String key,
java.lang.String value,
boolean isCommit)
throws java.lang.Exception
region - - GemFire regionkey - - entry key in region, database and valuesMapvalue - - expected valueisCommit - - true if tx committed (false if rolled back)java.lang.Exceptionpublic static void closeTask()
public static void validateFinally()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.