public class ViewTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkEventCounters |
protected boolean |
initializeTxInfo |
protected com.gemstone.gemfire.cache.InterestPolicy |
interestPolicy |
protected boolean |
isBridgeClient |
protected boolean |
isProxy |
protected boolean |
isScopeLocal |
protected boolean |
isSerialExecution |
static Object |
killSyncObject |
protected Integer |
myVmPid |
protected GsRandom |
rng |
protected com.gemstone.gemfire.internal.cache.TXStateInterface |
txContext |
protected boolean |
txInProgress |
protected static ViewTest |
viewTest |
| Constructor and Description |
|---|
ViewTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustOldValue(Operation op,
OpList opList) |
protected void |
beginTx() |
protected void |
checkCommittedState() |
protected void |
checkEventCounters()
Check CacheListener Event Counters
|
protected void |
checkTxEventCounters(Blackboard bb)
Check Transaction Listener (or Writer) Event Counters
|
protected void |
checkWriterCounters()
Check CacheWriter Event Counters
|
protected void |
executeTx() |
protected void |
finishTx() |
static Object |
getValueInVM(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Call getValueInVM on the given region.
|
static void |
HydraCloseTask_validateTxConsistency()
Hydra CLOSETASK to verify that either all or no VMs received
the distribution of a transaction (even though the tx vm was
killed mid-way through the operation.
|
static void |
HydraCloseTask_verifyResourcesReleased()
Hydra CLOSETASK to ensure that we can access the same entries
that were accessed in the original transaction (to ensure all
locking resources were released).
|
static void |
HydraTask_checkCommittedState() |
static void |
HydraTask_executeTx() |
static void |
HydraTask_initialize() |
static void |
HydraTask_killCommittor()
kill the VM if we are the transactional thread and a commit
is in Progress (see TxBB.commitInProgress)
|
static void |
HydraTask_waitForDist()
Task for threads whose sole purpose is to wait for commit distribution
Basically sleeping ...
|
void |
incrementEventCounters(OpList txOpList,
int counterType) |
void |
initialize() |
void |
setupCommitTestCallbacks(String commitStatePrm) |
protected boolean |
updatesVisible()
Depending on the commitStateTrigger (the point at which the committing
VM was killed), should we be able to see the tx updates?
|
protected void |
validateAllStates(boolean isTxVisible) |
protected void |
validateCacheClosed(boolean isVisible) |
protected void |
validateCombinedOpsAfterCommit() |
protected void |
validateCombinedOpsAfterRollback() |
protected void |
validateCommittedState(boolean txCommitted) |
protected boolean |
validateNonTxOps() |
protected void |
validateState(OpList opList,
boolean isVisible) |
protected void |
validateState(OpList opList,
boolean isVisible,
String txAction) |
protected void |
validateTxConsistency() |
protected boolean |
validateTxOps(boolean isTxVisible) |
protected boolean |
validateTxOps(boolean isTxVisible,
String txAction) |
protected void |
verifyCallbackInvocation(int numVmsWithTxListener) |
protected void |
verifyResourcesReleased()
Hydra CLOSETASK to verify that resources (e.g.
|
protected static ViewTest viewTest
protected boolean isSerialExecution
protected GsRandom rng
protected boolean txInProgress
protected Integer myVmPid
protected boolean isScopeLocal
protected boolean isBridgeClient
protected boolean isProxy
protected com.gemstone.gemfire.cache.InterestPolicy interestPolicy
protected boolean initializeTxInfo
protected boolean checkEventCounters
public static Object killSyncObject
protected com.gemstone.gemfire.internal.cache.TXStateInterface txContext
public static void HydraTask_initialize()
public void initialize()
public static void HydraTask_executeTx()
protected void executeTx()
protected void beginTx()
protected void finishTx()
protected void verifyCallbackInvocation(int numVmsWithTxListener)
protected void validateCommittedState(boolean txCommitted)
protected void validateCombinedOpsAfterCommit()
protected void validateCombinedOpsAfterRollback()
public static void HydraTask_checkCommittedState()
protected void checkCommittedState()
protected void validateAllStates(boolean isTxVisible)
protected boolean validateNonTxOps()
protected boolean validateTxOps(boolean isTxVisible)
protected boolean validateTxOps(boolean isTxVisible,
String txAction)
protected void validateState(OpList opList, boolean isVisible)
protected void validateCacheClosed(boolean isVisible)
public void incrementEventCounters(OpList txOpList, int counterType)
protected void checkWriterCounters()
protected void checkEventCounters()
protected void checkTxEventCounters(Blackboard bb)
- - the blackboard to verify agains (TxEventCountersBB vs. TxWriterCountersBB)public void setupCommitTestCallbacks(String commitStatePrm)
public static void HydraTask_killCommittor()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void HydraTask_waitForDist()
public static void HydraCloseTask_verifyResourcesReleased()
protected void verifyResourcesReleased()
public static void HydraCloseTask_validateTxConsistency()
protected void validateTxConsistency()
protected boolean updatesVisible()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.