public class EventIdOptimizationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache
The cache instance for test cases
|
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
EventIdOptimizationDUnitTest(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
assertThreadIdToSequenceIdMapHasEntryId()
Function to assert that the ThreadIdtoSequence id Map is not Null and has
only one entry.
|
static void |
closeCache()
Closes the cache
|
static void |
createClientCache1(String hostName,
Integer port)
Creates the client cache1, connected to server1
|
static void |
createClientCache2(String hostName,
Integer port)
Creates the client cache2, connected to server3
|
static Integer |
createServerCache()
Creates cache and starts the bridge-server
|
static void |
generateEventsByClearRegionOperation()
Generates events having specific values of threadId and sequenceId, via
clearRegionOperation through connection object
|
static void |
generateEventsByDestroyEntryOperation()
Generates events having specific values of threadId and sequenceId, via
destroyEntry operation through connection object
|
static void |
generateEventsByDestroyRegionOperation()
Generates events having specific values of threadId and sequenceId, via
destroyRegionOperation through connection object
|
static void |
generateEventsByPutOperation()
Generates events having specific values of threadId and sequenceId, via put
operation through connection object
|
void |
setUp()
Sets up the cache-servers and clients for the test
|
void |
tearDown2()
Closes the caches on clients and servers
|
void |
testEventIdOptimizationByClearRegionOperation()
Generates events having specific values of threadId and sequenceId from
client1 via clearRegion operation and verifies that the values received on
client2 match with those sent from client1.
|
void |
testEventIdOptimizationByDestroyEntryOperation()
Generates events having specific values of threadId and sequenceId from
client1 via destroyEntry operation and verifies that the values received on
client2 match with those sent from client1.
|
void |
testEventIdOptimizationByDestroyRegionOperation()
Generates events having specific values of threadId and sequenceId from
client1 via destroyRegion operation and verifies that the values received
on client2 match with those sent from client1.
|
void |
testEventIdOptimizationByPutOperation()
Generates events having specific values of threadId and sequenceId from
client1 via put operation and verifies that the values received on client2
match with those sent from client1.
|
static void |
validateEventsAtReceivingClientListener(String key)
Validates that the eventId of the event received in callback is contained
in the eventId array originally used by client1 to generate the events and
notifies client2 to proceed for validation once the LAST_KEY is received
|
static void |
verifyEventIdsOnClient2()
Waits for the listener to receive all events and validates that no
exception occured in client
|
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.cache.Cache cache
public EventIdOptimizationDUnitTest(String name)
public void setUp()
throws Exception
setUp in class DistributedTestCaseException - -
thrown in any problem occurs in setUppublic static Integer createServerCache() throws Exception
Exceptionpublic static void createClientCache1(String hostName, Integer port) throws Exception
port - -
bridgeserver portException - -
thrown if any problem occurs in setting up the clientpublic static void createClientCache2(String hostName, Integer port) throws Exception
port - -
bridgeserver portException - -
thrown if any problem occurs in setting up the clientpublic static void generateEventsByPutOperation()
throws Exception
Exception - -
thrown if any problem occurs in put operationpublic static void generateEventsByDestroyEntryOperation()
throws Exception
Exception - -
thrown if any problem occurs in destroyEntry operationpublic static void generateEventsByDestroyRegionOperation()
throws Exception
Exception - -
thrown if any problem occurs in destroyRegionOperationpublic static void generateEventsByClearRegionOperation()
throws Exception
Exception - -
thrown if any problem occurs in clearRegionOperationpublic void testEventIdOptimizationByPutOperation()
throws Exception
Exception - -
thrown if any exception occurs in testpublic void testEventIdOptimizationByDestroyEntryOperation()
throws Exception
Exception - -
thrown if any exception occurs in testpublic void testEventIdOptimizationByDestroyRegionOperation()
throws Exception
Exception - -
thrown if any exception occurs in testpublic void testEventIdOptimizationByClearRegionOperation()
throws Exception
Exception - -
thrown if any exception occurs in testpublic static void verifyEventIdsOnClient2()
public static void closeCache()
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic static Object assertThreadIdToSequenceIdMapHasEntryId()
public static void validateEventsAtReceivingClientListener(String key)
key - -
the key of the event for EntryEvent / token indicating type of
region operation for RegionEventCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.