public abstract class ManagementTestBase extends CacheTestCase
Modifier and Type | Field and Description |
---|---|
protected static org.apache.geode.test.dunit.VM |
managedNode1 |
protected static org.apache.geode.test.dunit.VM |
managedNode2 |
protected static org.apache.geode.test.dunit.VM |
managedNode3 |
protected static java.util.List<org.apache.geode.test.dunit.VM> |
managedNodeList
List containing all the Managed Node VM
|
protected static ManagementService |
managementService |
protected static org.apache.geode.test.dunit.VM |
managingNode
Managing Node VM
|
org.apache.geode.test.dunit.rules.DistributedRestoreSystemProperties |
restoreSystemProperties |
Constructor and Description |
---|
ManagementTestBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeCache(org.apache.geode.test.dunit.VM vm) |
protected Cache |
createCache(boolean isManager) |
protected void |
createCache(org.apache.geode.test.dunit.VM vm) |
protected void |
createCache(org.apache.geode.test.dunit.VM vm,
java.util.Properties props) |
protected void |
createLocalRegion(org.apache.geode.test.dunit.VM vm,
java.lang.String localRegionName)
Creates a Local region
|
protected void |
createManagementCache(org.apache.geode.test.dunit.VM vm) |
protected void |
createPartitionRegion(org.apache.geode.test.dunit.VM vm,
java.lang.String partitionRegionName)
Creates a partition Region
|
protected static java.util.List<org.apache.geode.test.dunit.VM> |
getManagedNodeList() |
protected static ManagementService |
getManagementService() |
protected static org.apache.geode.test.dunit.VM |
getManagingNode() |
protected <T> T |
getMBeanProxy(javax.management.ObjectName objectName,
java.lang.Class<T> interfaceClass) |
protected DistributedMember |
getMember(org.apache.geode.test.dunit.VM vm) |
protected java.lang.String |
getMemberId(org.apache.geode.test.dunit.VM vm) |
protected void |
initManagement(boolean managingNodeFirst)
managingNodeFirst variable tests for two different test cases where Managing & Managed Node
creation time lines are reversed.
|
void |
postSetUp() |
protected void |
postSetUpManagementTestBase() |
void |
postTearDownCacheTestCase() |
protected void |
postTearDownManagementTestBase() |
void |
preTearDownCacheTestCase() |
protected void |
preTearDownManagementTestBase() |
protected void |
startManagingNode(org.apache.geode.test.dunit.VM vm)
Marks a VM as Managing
|
protected void |
stopManagingNode(org.apache.geode.test.dunit.VM vm)
Stops a VM as a Managing node
|
protected static void |
waitForProxy(javax.management.ObjectName objectName,
java.lang.Class interfaceClass) |
protected static void |
waitForRefresh(int expectedRefreshCount,
javax.management.ObjectName objectName) |
addExceptionTag1, basicGetCache, beginCacheXml, closeAllCache, closeCache, createExpiryRootRegion, createLonerCache, createRegion, createRegion, createRootRegion, createRootRegion, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getCache, getClientCache, getClientCache, getDiskDir, getDiskDirs, getGemfireCache, getRootRegion, getRootRegion, hasCache, preTearDown, removeExceptionTag1
basicGetSystem, cleanDiskDirs, cleanupAllVms, deleteBACKUPDiskStoreFile, destroyRegions, disconnectAllFromDS, disconnectFromDS, getBlackboard, getDistributedSystemProperties, getLonerSystem, getName, getSystem, getSystem, getSystemStatic, getTestClass, getTestMethodName, getUniqueName, initializeBlackboard, initializeDistributedTestCase, isConnectedToDS, nullSystem, postTearDown, postTearDownAssertions, preSetUp, preTearDownAssertions, setSystem, setUpDistributedTestCase, tearDownDistributedTestCase
protected static ManagementService managementService
protected static java.util.List<org.apache.geode.test.dunit.VM> managedNodeList
protected static org.apache.geode.test.dunit.VM managingNode
protected static org.apache.geode.test.dunit.VM managedNode1
protected static org.apache.geode.test.dunit.VM managedNode2
protected static org.apache.geode.test.dunit.VM managedNode3
public org.apache.geode.test.dunit.rules.DistributedRestoreSystemProperties restoreSystemProperties
public final void postSetUp() throws java.lang.Exception
postSetUp
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
postSetUp
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
java.lang.Exception
protected void postSetUpManagementTestBase() throws java.lang.Exception
java.lang.Exception
public final void preTearDownCacheTestCase() throws java.lang.Exception
preTearDownCacheTestCase
in interface org.apache.geode.test.dunit.cache.internal.CacheTestFixture
preTearDownCacheTestCase
in class org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase
java.lang.Exception
public final void postTearDownCacheTestCase() throws java.lang.Exception
postTearDownCacheTestCase
in interface org.apache.geode.test.dunit.cache.internal.CacheTestFixture
postTearDownCacheTestCase
in class org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase
java.lang.Exception
protected void preTearDownManagementTestBase() throws java.lang.Exception
java.lang.Exception
protected void postTearDownManagementTestBase() throws java.lang.Exception
java.lang.Exception
protected void initManagement(boolean managingNodeFirst)
protected void createCache(org.apache.geode.test.dunit.VM vm)
protected void createCache(org.apache.geode.test.dunit.VM vm, java.util.Properties props)
protected Cache createCache(boolean isManager)
protected void createManagementCache(org.apache.geode.test.dunit.VM vm)
protected void closeCache(org.apache.geode.test.dunit.VM vm)
protected java.lang.String getMemberId(org.apache.geode.test.dunit.VM vm)
protected static void waitForProxy(javax.management.ObjectName objectName, java.lang.Class interfaceClass)
protected void startManagingNode(org.apache.geode.test.dunit.VM vm)
protected void stopManagingNode(org.apache.geode.test.dunit.VM vm)
protected static java.util.List<org.apache.geode.test.dunit.VM> getManagedNodeList()
protected static org.apache.geode.test.dunit.VM getManagingNode()
protected static ManagementService getManagementService()
protected void createLocalRegion(org.apache.geode.test.dunit.VM vm, java.lang.String localRegionName)
protected void createPartitionRegion(org.apache.geode.test.dunit.VM vm, java.lang.String partitionRegionName)
protected static void waitForRefresh(int expectedRefreshCount, javax.management.ObjectName objectName)
protected DistributedMember getMember(org.apache.geode.test.dunit.VM vm)
protected <T> T getMBeanProxy(javax.management.ObjectName objectName, java.lang.Class<T> interfaceClass)