public class StatsBugDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
StatsBugDUnitTest(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
Close the cache
|
static void |
createClientCache(String host,
Integer port1,
Integer port2)
Initializes the cache client
|
static void |
createClientCacheForInvalidates(String host,
Integer port1,
Integer port2)
Initializes the cache client
|
static Integer |
createServerCache()
Creates and starts the cache-server
|
static void |
doEntryOperations(String keyPrefix)
Do PUT operations
|
static void |
prepopulateClient()
Prepopulate the client with the entries that will be done by cache-servers
|
void |
setUp()
Creates the primary and the secondary cache servers
|
static void |
stopServer()
Stops the cache server
|
void |
tearDown2()
close the cache instances in server and client during tearDown
|
void |
testBug36109()
This test does the following:
1)Create and populate the client 2)Do some operations from the primary cache-server 3)Stop the primary cache-server 4)Wait some time to allow client to failover to secondary and do some operations from secondary 5)Verify that the invalidates stats at the client accounts for the operations done by both, primary and secondary. |
static void |
verifyNumInvalidates()
Verify that the invalidates stats at the client accounts for the operations
done by both, primary and secondary.
|
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, toStringpublic StatsBugDUnitTest(String name)
name - -
name for this test instancepublic void setUp()
throws Exception
setUp in class DistributedTestCaseException - -
thrown if any problem occurs in initializing the testpublic void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseException - thrown if any problem occurs in closing cachepublic void testBug36109()
throws Exception
Exception - -
thrown if any problem occurs in test executionpublic static Integer createServerCache() throws Exception
Exception - -
thrown if any problem occurs in cache/server creationpublic static void createClientCache(String host, Integer port1, Integer port2) throws Exception
port1 - -
port for the primary cache-serverport2-port - for the secondary cache-serverException-thrown - if any problem occurs in initializing the clientExceptionpublic static void createClientCacheForInvalidates(String host, Integer port1, Integer port2) throws Exception
port1 - -
port for the primary cache-serverport2-port - for the secondary cache-serverException-thrown - if any problem occurs in initializing the clientExceptionpublic static void verifyNumInvalidates()
public static void stopServer()
public static void doEntryOperations(String keyPrefix) throws Exception
keyPrefix - -
string prefix for the keys for all the entries do be doneException - -
thrown if any exception occurs in doing PUTspublic static void prepopulateClient()
throws Exception
Exceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.