public class HAEventIdPropagationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.internal.cache.EventID |
eventId
EventId *
|
protected static Object |
lockObject
Object to wait on till create is received *
|
protected static String |
PUTALL_KEY1 |
protected static String |
PUTALL_KEY2 |
protected static String |
PUTALL_KEY3 |
protected static String |
PUTALL_KEY4 |
protected static String |
PUTALL_KEY5 |
protected static com.gemstone.gemfire.internal.cache.EventID |
putAlleventId1 |
protected static com.gemstone.gemfire.internal.cache.EventID |
putAlleventId2 |
protected static com.gemstone.gemfire.internal.cache.EventID |
putAlleventId3 |
protected static com.gemstone.gemfire.internal.cache.EventID |
putAlleventId4 |
protected static com.gemstone.gemfire.internal.cache.EventID |
putAlleventId5 |
protected static boolean |
receivedOperation
boolean to signify receipt of create *
|
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
HAEventIdPropagationDUnitTest(String name)
test constructor *
|
| Modifier and Type | Method and Description |
|---|---|
void |
_testEventIDPropagationForDestroyRegion() |
static Object |
assertThreadIdToSequenceIdMapHasEntryId()
function to assert that the ThreadIdtoSequence id Map is not Null and has
only one entry *
|
static Object[] |
assertThreadIdToSequenceIdMapHasEntryIds()
function to assert that the ThreadIdtoSequence id Map is not Null and has
only one entry *
|
static void |
assertThreadIdToSequenceIdMapisNotNullButEmpty()
function to assert that the ThreadIdtoSequence id Map is not Null but is
empty *
|
static Object |
clearRg()
does a clear and return the eventid generated.
|
static void |
closeCache()
function to close cache *
|
static void |
createClientCache(String hostName,
Integer port1)
function to create client cache *
|
static Integer |
createServerCache()
create the server *
|
static Object |
destroyKey1()
does a destroy and return the eventid generated.
|
static Object |
destroyRegion()
does a destroy region return the eventid generated.
|
static Object |
invalidateKey1()
does an invalidate and return the eventid generated.
|
static Object[] |
putAll()
does an update and return the eventid generated.
|
static Object |
putKey1Val1()
does a put and return the eventid generated.
|
static Object |
removePUTALL_KEY1()
does a remove and return the eventid generated.
|
static void |
setReceivedOperationToFalse() |
void |
setUp()
get the hosts and the VMs *
|
void |
tearDown2()
close the caches*
|
void |
testEventIDPropagation()
This test: 1) creates a client server configuration 2) asserts that the
ThreadIdToSequenceIdMap is not null but is empty (on the client) 3) does a
operation on the server 4) Wait till operation is received by the server (and also
records the eventId in a variable) and returns the eventId generated on the
server 5) asserts that the ThreadIdToSequenceIdMap is not null and has one
entry (on the client side) and returns the eventId stored in the map 6)
verifies the equality of the two event ids
|
void |
testEventIDPropagationForClear() |
static Object |
updateKey1()
does an update and return the eventid generated.
|
static void |
waitTillOperationReceived()
wait till create is received.
|
addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, staticPause, tearDown, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringprotected static com.gemstone.gemfire.internal.cache.EventID eventId
protected static com.gemstone.gemfire.internal.cache.EventID putAlleventId1
protected static com.gemstone.gemfire.internal.cache.EventID putAlleventId2
protected static com.gemstone.gemfire.internal.cache.EventID putAlleventId3
protected static com.gemstone.gemfire.internal.cache.EventID putAlleventId4
protected static com.gemstone.gemfire.internal.cache.EventID putAlleventId5
protected static final String PUTALL_KEY1
protected static final String PUTALL_KEY2
protected static final String PUTALL_KEY3
protected static final String PUTALL_KEY4
protected static final String PUTALL_KEY5
protected static Object lockObject
protected static volatile boolean receivedOperation
public HAEventIdPropagationDUnitTest(String name)
public void setUp()
throws Exception
setUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic static Integer createServerCache() throws Exception
Exceptionpublic static void createClientCache(String hostName, Integer port1) throws Exception
Exceptionpublic static void closeCache()
public static void assertThreadIdToSequenceIdMapisNotNullButEmpty()
public static Object assertThreadIdToSequenceIdMapHasEntryId()
public static Object[] assertThreadIdToSequenceIdMapHasEntryIds()
public void testEventIDPropagation()
throws Exception
Exceptionpublic void testEventIDPropagationForClear()
throws Exception
Exceptionpublic void _testEventIDPropagationForDestroyRegion()
throws Exception
Exceptionpublic static void setReceivedOperationToFalse()
public static Object putKey1Val1()
public static Object updateKey1()
public static Object[] putAll()
public static Object invalidateKey1()
public static Object destroyKey1()
public static Object removePUTALL_KEY1()
public static Object clearRg()
public static Object destroyRegion()
public static void waitTillOperationReceived()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.