public class StatsBugDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
StatsBugDUnitTest(java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
Close the cache
|
static void |
createClientCache(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2)
Initializes the cache client
|
static void |
createClientCacheForInvalidates(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2)
Initializes the cache client
|
static java.lang.Integer |
createServerCache()
Creates and starts the cache-server
|
static void |
doEntryOperations(java.lang.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(java.lang.String name)
name - -
name for this test instancepublic void setUp()
throws java.lang.Exception
setUp in class DistributedTestCasejava.lang.Exception - -
thrown if any problem occurs in initializing the testpublic void tearDown2()
throws java.lang.Exception
tearDown2 in class DistributedTestCasejava.lang.Exception - thrown if any problem occurs in closing cachepublic void testBug36109()
throws java.lang.Exception
java.lang.Exception - -
thrown if any problem occurs in test executionpublic static java.lang.Integer createServerCache()
throws java.lang.Exception
java.lang.Exception - -
thrown if any problem occurs in cache/server creationpublic static void createClientCache(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
port1 - -
port for the primary cache-serverport2-port - for the secondary cache-serverException-thrown - if any problem occurs in initializing the clientjava.lang.Exceptionpublic static void createClientCacheForInvalidates(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
port1 - -
port for the primary cache-serverport2-port - for the secondary cache-serverException-thrown - if any problem occurs in initializing the clientjava.lang.Exceptionpublic static void verifyNumInvalidates()
public static void stopServer()
public static void doEntryOperations(java.lang.String keyPrefix)
throws java.lang.Exception
keyPrefix - -
string prefix for the keys for all the entries do be donejava.lang.Exception - -
thrown if any exception occurs in doing PUTspublic static void prepopulateClient()
throws java.lang.Exception
java.lang.Exceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.