public class LocatorManagementDUnitTest extends ManagementTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.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 java.lang.String |
startLocator(VM vm,
boolean isPeer,
int port)
Starts a locator with given configuration.
|
protected java.lang.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 java.lang.String DEFAULT_LOG_FILE
"locator.log"protected int mCastPort
public LocatorManagementDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class ManagementTestBasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class ManagementTestBasejava.lang.Exceptionpublic void testPeerLocation()
throws java.lang.Exception
java.lang.Exceptionpublic void testColocatedLocator()
throws java.lang.Exception
java.lang.Exceptionpublic void testListManagers()
throws java.lang.Exception
java.lang.Exceptionpublic void testWillingManagers()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String startLocator(VM vm, boolean isPeer, int port)
vm - reference to VMjava.lang.Throwableprotected java.lang.String stopLocator(VM vm)
vm - reference to VMjava.lang.Throwableprotected void locatorMBeanExist(VM vm, int locPort, boolean isPeer)
vm - reference to VMjava.lang.Throwableprotected void remoteLocatorMBeanExist(VM vm, com.gemstone.gemfire.distributed.DistributedMember member)
vm - reference to VMjava.lang.Throwableprotected void listManagers(VM vm, int locPort, boolean isPeer)
vm - reference to VMjava.lang.Throwableprotected void listWillingManagers(VM vm, int locPort, boolean isPeer)
vm - reference to VMjava.lang.Throwablepublic static java.lang.String getServerHostName(Host host)
host - Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.