public class LocatorManagementDUnitTest extends ManagementTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOG_FILE
Default file name for locator log:
"locator.log" |
protected int |
mCastPort |
ds, locatorVM, managedNode1, managedNode2, managedNode3, managedNodeList, managementService, managingNode, mbeanServerlogPerTest, reconnect, system, testName| Constructor and Description |
|---|
LocatorManagementDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getServerHostName(Host host)
get the host name to use for a server cache in client/server dunit
testing
|
protected void |
listManagers(VM vm,
int locPort,
boolean isPeer)
Creates a persistent region
|
protected void |
listWillingManagers(VM vm,
int locPort,
boolean isPeer)
Creates a persistent region
|
protected void |
locatorMBeanExist(VM vm,
int locPort,
boolean isPeer)
Creates a persistent region
|
protected void |
remoteLocatorMBeanExist(VM vm,
com.gemstone.gemfire.distributed.DistributedMember member)
Creates a persistent region
|
void |
setUp()
Sets up the test (noop).
|
protected String |
startLocator(VM vm,
boolean isPeer,
int port)
Starts a locator with given configuration.
|
protected String |
stopLocator(VM vm)
Creates a persistent region
|
void |
tearDown2()
Tears down the test.
|
void |
testColocatedLocator()
Tests a locator which is co-located with already existing cache
|
void |
testListManagers() |
void |
testPeerLocation()
When plan is to start Distributed System later so that the system can use
this locator
|
void |
testWillingManagers() |
checkManagedNodeCleanup, checkManagementExceptions, checkProxyCleanup, closeAllCache, closeCache, closeRegion, createCache, createCache, createCache, createCache, createDistributedRegion, createDistributedRegionAsync, createLocalRegion, createManagementCache, createPartitionRegion, createSubRegion, disableManagement, enableManagement, getCache, getManagedNodeList, getManagementService, getManagingNode, getMember, getMemberId, initManagement, putInDistributedRegion, runManagementTaskAdhoc, startBeingManagingNode, startManagingNode, startManagingNodeAsync, stopManagingNode, waitForAllMembers, waitForProxy, waitForRefreshaddExpectedException, 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, 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 final String DEFAULT_LOG_FILE
"locator.log"protected int mCastPort
public LocatorManagementDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class ManagementTestBaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class ManagementTestBaseExceptionpublic void testPeerLocation()
throws Exception
Exceptionpublic void testColocatedLocator()
throws Exception
Exceptionprotected String startLocator(VM vm, boolean isPeer, int port)
vm - reference to VMThrowableprotected String stopLocator(VM vm)
vm - reference to VMThrowableprotected void locatorMBeanExist(VM vm, int locPort, boolean isPeer)
vm - reference to VMThrowableprotected void remoteLocatorMBeanExist(VM vm, com.gemstone.gemfire.distributed.DistributedMember member)
vm - reference to VMThrowableprotected void listManagers(VM vm, int locPort, boolean isPeer)
vm - reference to VMThrowableprotected void listWillingManagers(VM vm, int locPort, boolean isPeer)
vm - reference to VMThrowableCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.