public class RollingUpgradeDUnitTest extends DistributedTestCase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RollingUpgradeDUnitTest.LocationAndOrdinal |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static RollingUpgradeDUnitTest.LocationAndOrdinal[] |
gemfireLocations |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
RollingUpgradeDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
assertEntryEquals(Object cache,
String regionName,
Object key,
Object value) |
static boolean |
assertEntryExists(Object cache,
String regionName,
Object key) |
static void |
assertQueryResults(Object cache,
String queryString,
int numExpectedResults) |
static boolean |
assertRegionExists(Object cache,
String regionName) |
static void |
assertVersion(Object cache,
short ordinal) |
protected void |
basicSetUp() |
void |
bounceAll(VM... vms) |
static void |
closeCache(Object cache) |
static Object |
createCache(Properties systemProperties) |
static Object |
createClientCache(Properties systemProperties,
String[] hosts,
int[] ports) |
static void |
createClientRegion(Object cache,
String regionName,
String shortcutName) |
static void |
createPartitionedRedundantRegion(Object cache,
String regionName) |
static void |
createPartitionedRegion(Object cache,
String regionName) |
static void |
createPersistentReplicateRegion(Object cache,
String regionName,
File diskStore) |
static void |
createRegion(Object cache,
String regionName,
String shortcutName) |
static void |
createRegion(String regionName,
Object regionFactory) |
static void |
createReplicatedRegion(Object cache,
String regionName) |
void |
deleteDiskStores() |
void |
doTestClients(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestConcurrent(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestPutAndGetMixedServers(String objectType,
boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
This test starts up multiple servers from the current code base
and multiple servers from the old version and executes
puts and gets on a new server and old server and verifies that the
results are present.
|
void |
doTestQueryMixedServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestRollAll(String regionType,
String objectType,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestRollLocators(RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestRollLocatorsWithOldServer(RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestRollSingleLocatorWithMultipleServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestRollTwoLocatorsWithTwoServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
Properties |
getClientSystemProperties() |
Properties |
getLocatorProperties(String locatorsString) |
static String |
getLocatorString(int locatorPort) |
static String |
getLocatorString(int[] locatorPorts) |
static Object |
getRegion(Object cache,
String regionName) |
Properties |
getSystemProperties() |
Properties |
getSystemProperties(int[] locatorPorts) |
static Object |
put(Object cache,
String regionName,
Object key,
Object value) |
static void |
rebalance(Object cache) |
void |
setUp()
Sets up the test (noop).
|
static void |
startCacheServer(Object cache,
int port) |
static void |
startLocator(String serverHostName,
int port,
String testName,
String locatorsString)
Starts a locator with given configuration.
|
static void |
startLocator(String serverHostName,
int port,
String testName,
String locatorsString,
Properties props)
Starts a locator with given configuration.
|
static void |
stopCacheServers(Object cache) |
static void |
stopLocator() |
void |
testClients() |
void |
testConcurrentPutsReplicated() |
void |
testOldMemberCantJoin()
Demonstrate that a process using an old version of the product
can't join a system that has begun upgrading.
|
void |
testPutAndGetMixedServerPartitionedRegion() |
void |
testPutAndGetMixedServersReplicateRegion() |
void |
testQueryMixedServersOnPartitionedRegions() |
void |
testQueryMixedServersOnReplicatedRegions() |
void |
testRollLocators() |
void |
testRollLocatorsWithOldServer() |
void |
testRollServersOnPartitionedRegion() |
void |
testRollServersOnPersistentRegion() |
void |
testRollServersOnReplicatedRegion() |
void |
testRollSingleLocatorWithMultipleServersReplicatedRegion() |
void |
testRollTwoLocatorsWithTwoServers() |
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, tearDown2, 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 RollingUpgradeDUnitTest.LocationAndOrdinal[] gemfireLocations
public RollingUpgradeDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void bounceAll(VM... vms)
public void testOldMemberCantJoin()
throws Exception
Exceptionpublic void testRollSingleLocatorWithMultipleServersReplicatedRegion()
throws Exception
Exceptionpublic void doTestRollSingleLocatorWithMultipleServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws Exception
Exceptionpublic void testRollTwoLocatorsWithTwoServers()
throws Exception
Exceptionpublic void doTestRollTwoLocatorsWithTwoServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws Exception
Exceptionpublic void doTestClients(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws Exception
Exceptionpublic void testRollLocatorsWithOldServer()
throws Exception
Exceptionpublic void doTestRollLocatorsWithOldServer(RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) throws Exception
Exceptionpublic void doTestRollLocators(RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) throws Exception
Exceptionpublic void testConcurrentPutsReplicated()
throws Exception
Exceptionpublic void doTestConcurrent(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws Exception
Exceptionpublic void testRollServersOnReplicatedRegion()
throws Exception
Exceptionpublic void testRollServersOnPartitionedRegion()
throws Exception
Exceptionpublic void testRollServersOnPersistentRegion()
throws Exception
Exceptionpublic void doTestRollAll(String regionType, String objectType, RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) throws Exception
Exceptionpublic void testPutAndGetMixedServersReplicateRegion()
throws Exception
Exceptionpublic void testPutAndGetMixedServerPartitionedRegion()
throws Exception
Exceptionpublic void doTestPutAndGetMixedServers(String objectType, boolean partitioned, RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) throws Exception
Exceptionpublic void testQueryMixedServersOnReplicatedRegions()
throws Exception
Exceptionpublic void testQueryMixedServersOnPartitionedRegions()
throws Exception
Exceptionpublic void doTestQueryMixedServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws Exception
Exceptionpublic Properties getLocatorProperties(String locatorsString)
public Properties getSystemProperties()
public Properties getSystemProperties(int[] locatorPorts)
public Properties getClientSystemProperties()
public static String getLocatorString(int locatorPort)
public static String getLocatorString(int[] locatorPorts)
public static void startLocator(String serverHostName, int port, String testName, String locatorsString, Properties props) throws Exception
Exceptionpublic static Object createCache(Properties systemProperties) throws Exception
Exceptionpublic static void startCacheServer(Object cache, int port) throws Exception
Exceptionpublic static Object createClientCache(Properties systemProperties, String[] hosts, int[] ports) throws Exception
Exceptionpublic static boolean assertRegionExists(Object cache, String regionName) throws Exception
Exceptionpublic static Object getRegion(Object cache, String regionName) throws Exception
Exceptionpublic static boolean assertEntryEquals(Object cache, String regionName, Object key, Object value) throws Exception
Exceptionpublic static boolean assertEntryExists(Object cache, String regionName, Object key) throws Exception
Exceptionpublic static Object put(Object cache, String regionName, Object key, Object value) throws Exception
Exceptionpublic static void createRegion(Object cache, String regionName, String shortcutName) throws Exception
Exceptionpublic static void createPartitionedRegion(Object cache, String regionName) throws Exception
Exceptionpublic static void createPartitionedRedundantRegion(Object cache, String regionName) throws Exception
Exceptionpublic static void createReplicatedRegion(Object cache, String regionName) throws Exception
Exceptionpublic static void createClientRegion(Object cache, String regionName, String shortcutName) throws Exception
Exceptionpublic static void createRegion(String regionName, Object regionFactory) throws Exception
Exceptionpublic static void createPersistentReplicateRegion(Object cache, String regionName, File diskStore) throws Exception
Exceptionpublic static void assertVersion(Object cache, short ordinal) throws Exception
Exceptionpublic static void assertQueryResults(Object cache, String queryString, int numExpectedResults)
public static void stopCacheServers(Object cache) throws Exception
Exceptionpublic static void startLocator(String serverHostName, int port, String testName, String locatorsString) throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.