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(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
assertEntryEquals(java.lang.Object cache,
java.lang.String regionName,
java.lang.Object key,
java.lang.Object value) |
static boolean |
assertEntryExists(java.lang.Object cache,
java.lang.String regionName,
java.lang.Object key) |
static void |
assertQueryResults(java.lang.Object cache,
java.lang.String queryString,
int numExpectedResults) |
static boolean |
assertRegionExists(java.lang.Object cache,
java.lang.String regionName) |
static void |
assertVersion(java.lang.Object cache,
short ordinal) |
protected void |
basicSetUp() |
void |
bounceAll(VM... vms) |
static void |
closeCache(java.lang.Object cache) |
static java.lang.Object |
createCache(java.util.Properties systemProperties) |
static java.lang.Object |
createClientCache(java.util.Properties systemProperties,
java.lang.String[] hosts,
int[] ports) |
static void |
createClientRegion(java.lang.Object cache,
java.lang.String regionName,
java.lang.String shortcutName) |
static void |
createPartitionedRedundantRegion(java.lang.Object cache,
java.lang.String regionName) |
static void |
createPartitionedRegion(java.lang.Object cache,
java.lang.String regionName) |
static void |
createPersistentReplicateRegion(java.lang.Object cache,
java.lang.String regionName,
java.io.File diskStore) |
static void |
createRegion(java.lang.Object cache,
java.lang.String regionName,
java.lang.String shortcutName) |
static void |
createRegion(java.lang.String regionName,
java.lang.Object regionFactory) |
static void |
createReplicatedRegion(java.lang.Object cache,
java.lang.String regionName) |
void |
deleteDiskStores() |
void |
doTestClients(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestConcurrent(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) |
void |
doTestPutAndGetMixedServers(java.lang.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(java.lang.String regionType,
java.lang.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) |
java.util.Properties |
getClientSystemProperties() |
java.util.Properties |
getLocatorProperties(java.lang.String locatorsString) |
static java.lang.String |
getLocatorString(int locatorPort) |
static java.lang.String |
getLocatorString(int[] locatorPorts) |
static java.lang.Object |
getRegion(java.lang.Object cache,
java.lang.String regionName) |
java.util.Properties |
getSystemProperties() |
java.util.Properties |
getSystemProperties(int[] locatorPorts) |
static java.lang.Object |
put(java.lang.Object cache,
java.lang.String regionName,
java.lang.Object key,
java.lang.Object value) |
static void |
rebalance(java.lang.Object cache) |
void |
setUp()
Sets up the test (noop).
|
static void |
startCacheServer(java.lang.Object cache,
int port) |
static void |
startLocator(java.lang.String serverHostName,
int port,
java.lang.String testName,
java.lang.String locatorsString)
Starts a locator with given configuration.
|
static void |
startLocator(java.lang.String serverHostName,
int port,
java.lang.String testName,
java.lang.String locatorsString,
java.util.Properties props)
Starts a locator with given configuration.
|
static void |
stopCacheServers(java.lang.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 void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionprotected void basicSetUp()
throws java.lang.Exception
java.lang.Exceptionpublic void bounceAll(VM... vms)
public void testOldMemberCantJoin()
throws java.lang.Exception
java.lang.Exceptionpublic void testRollSingleLocatorWithMultipleServersReplicatedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestRollSingleLocatorWithMultipleServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic void testRollTwoLocatorsWithTwoServers()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestRollTwoLocatorsWithTwoServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic void testClients()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestClients(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic void testRollLocatorsWithOldServer()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestRollLocatorsWithOldServer(RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) throws java.lang.Exception
java.lang.Exceptionpublic void testRollLocators()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestRollLocators(RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal) throws java.lang.Exception
java.lang.Exceptionpublic void testConcurrentPutsReplicated()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestConcurrent(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic void testRollServersOnReplicatedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testRollServersOnPartitionedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testRollServersOnPersistentRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestRollAll(java.lang.String regionType,
java.lang.String objectType,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic void testPutAndGetMixedServersReplicateRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testPutAndGetMixedServerPartitionedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestPutAndGetMixedServers(java.lang.String objectType,
boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryMixedServersOnReplicatedRegions()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryMixedServersOnPartitionedRegions()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestQueryMixedServers(boolean partitioned,
RollingUpgradeDUnitTest.LocationAndOrdinal oldLocationAndOrdinal)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Properties getLocatorProperties(java.lang.String locatorsString)
public java.util.Properties getSystemProperties()
public java.util.Properties getSystemProperties(int[] locatorPorts)
public java.util.Properties getClientSystemProperties()
public static java.lang.String getLocatorString(int locatorPort)
public static java.lang.String getLocatorString(int[] locatorPorts)
public static void startLocator(java.lang.String serverHostName,
int port,
java.lang.String testName,
java.lang.String locatorsString,
java.util.Properties props)
throws java.lang.Exception
java.lang.Exceptionpublic void deleteDiskStores()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object createCache(java.util.Properties systemProperties)
throws java.lang.Exception
java.lang.Exceptionpublic static void startCacheServer(java.lang.Object cache,
int port)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object createClientCache(java.util.Properties systemProperties,
java.lang.String[] hosts,
int[] ports)
throws java.lang.Exception
java.lang.Exceptionpublic static boolean assertRegionExists(java.lang.Object cache,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object getRegion(java.lang.Object cache,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static boolean assertEntryEquals(java.lang.Object cache,
java.lang.String regionName,
java.lang.Object key,
java.lang.Object value)
throws java.lang.Exception
java.lang.Exceptionpublic static boolean assertEntryExists(java.lang.Object cache,
java.lang.String regionName,
java.lang.Object key)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object put(java.lang.Object cache,
java.lang.String regionName,
java.lang.Object key,
java.lang.Object value)
throws java.lang.Exception
java.lang.Exceptionpublic static void createRegion(java.lang.Object cache,
java.lang.String regionName,
java.lang.String shortcutName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createPartitionedRegion(java.lang.Object cache,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createPartitionedRedundantRegion(java.lang.Object cache,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createReplicatedRegion(java.lang.Object cache,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientRegion(java.lang.Object cache,
java.lang.String regionName,
java.lang.String shortcutName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createRegion(java.lang.String regionName,
java.lang.Object regionFactory)
throws java.lang.Exception
java.lang.Exceptionpublic static void createPersistentReplicateRegion(java.lang.Object cache,
java.lang.String regionName,
java.io.File diskStore)
throws java.lang.Exception
java.lang.Exceptionpublic static void assertVersion(java.lang.Object cache,
short ordinal)
throws java.lang.Exception
java.lang.Exceptionpublic static void assertQueryResults(java.lang.Object cache,
java.lang.String queryString,
int numExpectedResults)
public static void stopCacheServers(java.lang.Object cache)
throws java.lang.Exception
java.lang.Exceptionpublic static void closeCache(java.lang.Object cache)
throws java.lang.Exception
java.lang.Exceptionpublic static void rebalance(java.lang.Object cache)
throws java.lang.Exception
java.lang.Exceptionpublic static void startLocator(java.lang.String serverHostName,
int port,
java.lang.String testName,
java.lang.String locatorsString)
throws java.lang.Exception
java.lang.Exceptionpublic static void stopLocator()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.