public class RegionManagementDUnitTest extends ManagementTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Region |
DiskRegion |
ds, locatorVM, managedNode1, managedNode2, managedNode3, managedNodeList, managementService, managingNode, mbeanServerlogPerTest, reconnect, system, testName| Constructor and Description |
|---|
RegionManagementDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDistrListener(VM vm)
Add a Notification listener to DistributedSystemMBean which should gather
all the notifications which are propagated through all individual
MemberMBeans Hence Region created/destroyed should be visible to this
listener
|
protected void |
addMemberListener(VM vm)
Add a Notification listener to MemberMBean
|
protected static void |
assertPartitionData(com.gemstone.gemfire.cache.RegionAttributes regAttrs,
com.gemstone.gemfire.management.PartitionAttributesData partitionAttributesData)
Asserts and verifies all the partition related data
|
protected static void |
assertRegionAttributes(com.gemstone.gemfire.cache.RegionAttributes regAttrs,
com.gemstone.gemfire.management.RegionAttributesData data)
Checks all Region Attributes
|
void |
checkEntrySize(VM vm1,
int expectedMembers) |
protected void |
checkNavigationAPIS(VM vm,
java.util.List<java.lang.String> managedNodeMemberIds) |
void |
checkNullRegions(VM vm1,
java.lang.String subRegionPath) |
void |
checkSpecialRegion(VM vm1,
com.gemstone.gemfire.distributed.DistributedMember member) |
void |
checkSubRegions(VM vm1,
java.lang.String subRegionPath) |
protected void |
closeFixedPartitionRegion(VM vm)
Closes Fixed Partition region
|
void |
createDiskRegion(VM vm1) |
protected static void |
createFixedPartitionRegion(java.util.List<com.gemstone.gemfire.cache.FixedPartitionAttributes> fpaList)
Creates a Fixed Partitioned Region
|
void |
createSpecialRegion(VM vm1) |
void |
ensureProxyCleanup(VM vm) |
protected com.gemstone.gemfire.internal.cache.lru.LRUStatistics |
getLRUStats(com.gemstone.gemfire.cache.Region region) |
protected void |
putBulkData(VM vm,
int numKeys) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testDistributedRegion()
Tests all Region MBean related Management APIs
a) Notification propagated to member MBean while a region is created
b) Creates and check a Distributed Region
|
void |
testFixedPRRegionMBean()
Tests all Region MBean related Management APIs
a) Notification propagated to member MBean while a region is created
b) Creates and check a Fixed Partitioned Region
|
void |
testLruStats() |
void |
testNavigationAPIS() |
void |
testPartitionedRegion()
Tests all Region MBean related Management APIs
a) Notification propagated to member MBean while a region is created
b) Created and check a Partitioned Region
|
void |
testRegionAggregate()
Tests a Distributed Region at Managing Node side
while region is created in a member node asynchronously.
|
void |
testSpecialRegions() |
void |
testSubRegions() |
protected void |
validateDistributedMBean(VM vm,
int expectedMembers) |
protected void |
validatePartitionRegionAfterClose(VM vm)
close a partition Region
|
protected void |
validatePartitionRegionAfterCreate(VM vm)
Creates a partition Region
|
protected void |
validateRemoteFixedPartitionRegion(VM vm)
Verifies the Fixed Partition Region for partition related attributes
|
protected void |
validateRemotePartitionRegion(VM vm)
Verifies a Remote Partition Region
|
protected void |
validateReplicatedRegionAfterClose(VM vm)
closes a Distributed Region
|
protected void |
validateReplicateRegionAfterCreate(VM vm)
Creates a Distributed Region
|
protected void |
verifyRemoteDistributedRegion(VM vm,
int expectedMembers)
Verifies a Remote Distributed Region
|
void |
verifyStatistics()
Verifies Region related Statistics
|
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, 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 RegionManagementDUnitTest(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 testDistributedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testPartitionedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testFixedPRRegionMBean()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegionAggregate()
throws java.lang.Exception
java.lang.Exceptionpublic void testNavigationAPIS()
throws java.lang.Exception
java.lang.Exceptionpublic void testSubRegions()
throws java.lang.Exception
java.lang.Exceptionpublic void testSpecialRegions()
throws java.lang.Exception
java.lang.Exceptionpublic void createSpecialRegion(VM vm1) throws java.lang.Exception
java.lang.Exceptionpublic void checkSpecialRegion(VM vm1, com.gemstone.gemfire.distributed.DistributedMember member) throws java.lang.Exception
java.lang.Exceptionpublic void testLruStats()
throws java.lang.Exception
java.lang.Exceptionpublic void createDiskRegion(VM vm1) throws java.lang.Exception
java.lang.Exceptionpublic void checkEntrySize(VM vm1, int expectedMembers) throws java.lang.Exception
java.lang.Exceptionprotected com.gemstone.gemfire.internal.cache.lru.LRUStatistics getLRUStats(com.gemstone.gemfire.cache.Region region)
public void checkSubRegions(VM vm1, java.lang.String subRegionPath) throws java.lang.Exception
java.lang.Exceptionpublic void checkNullRegions(VM vm1, java.lang.String subRegionPath) throws java.lang.Exception
java.lang.Exceptionprotected void checkNavigationAPIS(VM vm, java.util.List<java.lang.String> managedNodeMemberIds)
protected void putBulkData(VM vm, int numKeys)
protected static void createFixedPartitionRegion(java.util.List<com.gemstone.gemfire.cache.FixedPartitionAttributes> fpaList)
fpaList - partition listprotected void validateRemoteFixedPartitionRegion(VM vm) throws java.lang.Exception
vm - java.lang.Exceptionprotected void addMemberListener(VM vm)
vm - protected void addDistrListener(VM vm)
vm - public void ensureProxyCleanup(VM vm)
protected void verifyRemoteDistributedRegion(VM vm, int expectedMembers) throws java.lang.Exception
vm - java.lang.Exceptionprotected void validateDistributedMBean(VM vm, int expectedMembers)
protected void validateRemotePartitionRegion(VM vm) throws java.lang.Exception
vm - java.lang.Exceptionprotected void validateReplicateRegionAfterCreate(VM vm)
vm - protected void validatePartitionRegionAfterCreate(VM vm)
vm - protected void validateReplicatedRegionAfterClose(VM vm)
vm - protected void validatePartitionRegionAfterClose(VM vm)
vm - protected void closeFixedPartitionRegion(VM vm)
vm - protected static void assertPartitionData(com.gemstone.gemfire.cache.RegionAttributes regAttrs,
com.gemstone.gemfire.management.PartitionAttributesData partitionAttributesData)
regAttrs - partitionAttributesData - protected static void assertRegionAttributes(com.gemstone.gemfire.cache.RegionAttributes regAttrs,
com.gemstone.gemfire.management.RegionAttributesData data)
regAttrs - data - public void verifyStatistics()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.