public class ReconnectDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static boolean |
initialized |
static boolean |
initialRolePlayerStarted |
static int |
reconnectTries |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
ReconnectDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
DISABLED_testReconnectWithRequiredRoleRegained() |
boolean |
forceDisconnect(VM vm) |
java.util.Properties |
getDistributedSystemProperties()
Returns a
Properties object used to configure a
connection to a DistributedSystem. |
static java.lang.Boolean |
isInitialized() |
static java.lang.Boolean |
isInitialRolePlayerStarted() |
static java.lang.Integer |
reconnectTries() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testReconnect()
(comment from Bruce: this test doesn't seem to really do anything)
|
void |
testReconnectALocator() |
void |
testReconnectOnForcedDisconnect() |
void |
testReconnectWithQuorum() |
void |
testReconnectWithRoleLoss()
Test the reconnect behavior when the required roles are missing.
|
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, 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 static volatile int reconnectTries
public static volatile boolean initialized
public static volatile boolean initialRolePlayerStarted
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic java.util.Properties getDistributedSystemProperties()
DistributedTestCaseProperties object used to configure a
connection to a DistributedSystem.
Unless overridden, this method will return an empty
Properties object.getDistributedSystemProperties in class DistributedTestCasepublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionpublic void testReconnect()
throws com.gemstone.gemfire.cache.TimeoutException,
com.gemstone.gemfire.cache.CacheException,
java.io.IOException
java.lang.Exceptioncom.gemstone.gemfire.cache.TimeoutExceptioncom.gemstone.gemfire.cache.CacheExceptionjava.io.IOExceptionpublic void testReconnectWithQuorum()
throws java.lang.Exception
java.lang.Exceptionpublic void testReconnectOnForcedDisconnect()
throws java.lang.Exception
java.lang.Exceptionpublic void testReconnectALocator()
throws java.lang.Exception
java.lang.Exceptionpublic void testReconnectWithRoleLoss()
throws com.gemstone.gemfire.cache.TimeoutException,
com.gemstone.gemfire.cache.RegionExistsException
com.gemstone.gemfire.cache.TimeoutExceptioncom.gemstone.gemfire.cache.RegionExistsExceptionpublic static java.lang.Integer reconnectTries()
public static java.lang.Boolean isInitialized()
public static java.lang.Boolean isInitialRolePlayerStarted()
public void DISABLED_testReconnectWithRequiredRoleRegained()
throws java.lang.Throwable
java.lang.Throwablepublic boolean forceDisconnect(VM vm)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.