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 java.lang.Object |
lockObject
Object to wait on till create is received *
|
protected static java.lang.String |
PUTALL_KEY1 |
protected static java.lang.String |
PUTALL_KEY2 |
protected static java.lang.String |
PUTALL_KEY3 |
protected static java.lang.String |
PUTALL_KEY4 |
protected static java.lang.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(java.lang.String name)
test constructor *
|
| Modifier and Type | Method and Description |
|---|---|
void |
_testEventIDPropagationForDestroyRegion() |
static java.lang.Object |
assertThreadIdToSequenceIdMapHasEntryId()
function to assert that the ThreadIdtoSequence id Map is not Null and has
only one entry *
|
static java.lang.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 java.lang.Object |
clearRg()
does a clear and return the eventid generated.
|
static void |
closeCache()
function to close cache *
|
static void |
createClientCache(java.lang.String hostName,
java.lang.Integer port1)
function to create client cache *
|
static java.lang.Integer |
createServerCache()
create the server *
|
static java.lang.Object |
destroyKey1()
does a destroy and return the eventid generated.
|
static java.lang.Object |
destroyRegion()
does a destroy region return the eventid generated.
|
static java.lang.Object |
invalidateKey1()
does an invalidate and return the eventid generated.
|
static java.lang.Object[] |
putAll()
does an update and return the eventid generated.
|
static java.lang.Object |
putKey1Val1()
does a put and return the eventid generated.
|
static java.lang.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 java.lang.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 java.lang.String PUTALL_KEY1
protected static final java.lang.String PUTALL_KEY2
protected static final java.lang.String PUTALL_KEY3
protected static final java.lang.String PUTALL_KEY4
protected static final java.lang.String PUTALL_KEY5
protected static java.lang.Object lockObject
protected static volatile boolean receivedOperation
public HAEventIdPropagationDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
setUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static java.lang.Integer createServerCache()
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.String hostName,
java.lang.Integer port1)
throws java.lang.Exception
java.lang.Exceptionpublic static void closeCache()
public static void assertThreadIdToSequenceIdMapisNotNullButEmpty()
public static java.lang.Object assertThreadIdToSequenceIdMapHasEntryId()
public static java.lang.Object[] assertThreadIdToSequenceIdMapHasEntryIds()
public void testEventIDPropagation()
throws java.lang.Exception
java.lang.Exceptionpublic void testEventIDPropagationForClear()
throws java.lang.Exception
java.lang.Exceptionpublic void _testEventIDPropagationForDestroyRegion()
throws java.lang.Exception
java.lang.Exceptionpublic static void setReceivedOperationToFalse()
public static java.lang.Object putKey1Val1()
public static java.lang.Object updateKey1()
public static java.lang.Object[] putAll()
public static java.lang.Object invalidateKey1()
public static java.lang.Object destroyKey1()
public static java.lang.Object removePUTALL_KEY1()
public static java.lang.Object clearRg()
public static java.lang.Object destroyRegion()
public static void waitTillOperationReceived()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.