public class PRColocationDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static int |
defaultStringSize |
protected static int |
totalNumBucketsInTest |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
PRColocationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
Bug47502_testColocatedPRWithClose() |
static void |
closeRegion(String partitionedRegionName) |
protected void |
createCacheInAllVms() |
static void |
createCacheInVm() |
protected void |
createPartitionedRegion(Object[] attributes) |
static void |
createPR(String partitionedRegionName,
Integer redundancy,
Integer localMaxMemory,
Integer totalNumBuckets,
Object colocatedWith,
Boolean isPartitionResolver) |
static void |
createPR(String partitionedRegionName,
Integer redundancy,
Integer localMaxMemory,
Integer totalNumBuckets,
Object colocatedWith,
Boolean isPartitionResolver,
Boolean concurrencyChecks) |
static void |
createSubPR(String partitionedRegionName,
Integer redundancy,
Integer localMaxMemory,
Integer totalNumBuckets,
Object colocatedWith,
Boolean isPartitionResolver) |
static void |
destroyPR(String partitionedRegionName) |
static void |
executeFunction() |
static String |
getDefaultAddOnString() |
static void |
putCustomerPartitionedRegion(String partitionedRegionName) |
static void |
putData_KeyBasedPartitionResolver() |
static void |
putInPartitionedRegion(com.gemstone.gemfire.cache.Region pr) |
static void |
putOrderPartitionedRegion(String partitionedRegionName) |
static void |
putOrderPartitionedRegion2(String partitionedRegionName) |
static void |
putShipmentPartitionedRegion(String partitionedRegionName) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testColocatedPartitionedRegion_NoFullPath() |
void |
testColocatedPartitionedRegion() |
void |
testColocatedPRRedundancyRecovery()
Tests to make sure that a VM will not make copies of
any buckets for a region until all of the colocated regions are
created.
|
void |
testColocatedPRRedundancyRecovery2() |
void |
testColocatedPRWithAccessorOnDifferentNode1() |
void |
testColocatedPRWithAccessorOnDifferentNode2() |
void |
testColocatedPRWithDestroy() |
void |
testColocatedPRWithLocalDestroy() |
void |
testColocatedPRWithPROnDifferentNode1() |
void |
testColocatedSubPartitionedRegion_NoFullPath() |
void |
testColocatedSubPartitionedRegion() |
void |
testColocationPartitionedRegion() |
void |
testColocationPartitionedRegionWithKeyPartitionResolver() |
void |
testColocationPartitionedRegionWithNullColocationSpecifiedOnOneNode()
Test verifies following invalid collocation creation
Member 1: PR2 colocatedWith PR1 Member 2: PR2 is not colocated Should throw IllegalStateException |
void |
testColocationPartitionedRegionWithRedundancy() |
void |
testDestroyColocatedPartitionedRegion() |
void |
testPartitionResolverPartitionedRegion() |
void |
testRedundancyRestriction()
Confirm that the redundancy must be the same for colocated partitioned regions
|
void |
testSimulaneousChildRegionCreation()
Test of hang observed at nomura with the
PRHARedundancyProvider.createMissingBuckets code.
|
static void |
validateAfterPutPartitionedRegion(String customerPartitionedRegionName,
String orderPartitionedRegionName,
String shipmentPartitionedRegionName) |
static void |
validateBeforePutCustomerPartitionedRegion(String partitionedRegionName) |
static void |
validateColocatedRegions(String partitionedRegionName) |
static Integer |
validateDataStore(String customerPartitionedRegionName,
String orderPartitionedRegionName,
String shipmentPartitionedRegionName) |
static void |
validateDataStoreForRedundancy(String customerPartitionedRegionName,
String orderPartitionedRegionName,
String shipmentPartitionedRegionName) |
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, 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, toStringprotected static com.gemstone.gemfire.cache.Cache cache
protected static int totalNumBucketsInTest
protected static int defaultStringSize
public PRColocationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testDestroyColocatedPartitionedRegion()
throws Throwable
Throwablepublic void testColocatedPartitionedRegion()
throws Throwable
Throwablepublic void testColocatedPartitionedRegion_NoFullPath()
throws Throwable
Throwablepublic void testColocatedSubPartitionedRegion()
throws Throwable
Throwablepublic void testColocatedSubPartitionedRegion_NoFullPath()
throws Throwable
Throwablepublic void testColocatedPRWithAccessorOnDifferentNode1()
throws Throwable
Throwablepublic void testColocatedPRWithAccessorOnDifferentNode2()
throws Throwable
Throwablepublic void testColocatedPRWithPROnDifferentNode1()
throws Throwable
Throwablepublic void testColocatedPRWithLocalDestroy()
throws Throwable
Throwablepublic void testColocatedPRWithDestroy()
throws Throwable
Throwablepublic void Bug47502_testColocatedPRWithClose()
throws Throwable
Throwablepublic void testPartitionResolverPartitionedRegion()
throws Throwable
Throwablepublic void testColocationPartitionedRegion()
throws Throwable
Throwablepublic void testColocationPartitionedRegionWithNullColocationSpecifiedOnOneNode()
throws Throwable
Throwablepublic void testColocationPartitionedRegionWithRedundancy()
throws Throwable
Throwablepublic void testRedundancyRestriction()
throws Exception
Exceptionpublic void testColocatedPRRedundancyRecovery()
throws Throwable
Throwablepublic void testColocationPartitionedRegionWithKeyPartitionResolver()
throws Throwable
Throwablepublic void testColocatedPRRedundancyRecovery2()
throws Throwable
Throwablepublic void testSimulaneousChildRegionCreation()
throws Throwable
Throwablepublic static void putData_KeyBasedPartitionResolver()
public static void executeFunction()
public static void validateDataStoreForRedundancy(String customerPartitionedRegionName, String orderPartitionedRegionName, String shipmentPartitionedRegionName)
public static Integer validateDataStore(String customerPartitionedRegionName, String orderPartitionedRegionName, String shipmentPartitionedRegionName)
public static void validateColocatedRegions(String partitionedRegionName)
public static void validateBeforePutCustomerPartitionedRegion(String partitionedRegionName)
public static void validateAfterPutPartitionedRegion(String customerPartitionedRegionName, String orderPartitionedRegionName, String shipmentPartitionedRegionName) throws ClassNotFoundException
ClassNotFoundExceptionprotected void createCacheInAllVms()
public static void putInPartitionedRegion(com.gemstone.gemfire.cache.Region pr)
public static void closeRegion(String partitionedRegionName)
public static void putCustomerPartitionedRegion(String partitionedRegionName)
public static void putOrderPartitionedRegion(String partitionedRegionName)
public static void putOrderPartitionedRegion2(String partitionedRegionName)
public static void putShipmentPartitionedRegion(String partitionedRegionName)
protected void createPartitionedRegion(Object[] attributes)
public static void destroyPR(String partitionedRegionName)
public static void createPR(String partitionedRegionName, Integer redundancy, Integer localMaxMemory, Integer totalNumBuckets, Object colocatedWith, Boolean isPartitionResolver)
public static void createPR(String partitionedRegionName, Integer redundancy, Integer localMaxMemory, Integer totalNumBuckets, Object colocatedWith, Boolean isPartitionResolver, Boolean concurrencyChecks)
public static void createSubPR(String partitionedRegionName, Integer redundancy, Integer localMaxMemory, Integer totalNumBuckets, Object colocatedWith, Boolean isPartitionResolver)
public static void createCacheInVm()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic static String getDefaultAddOnString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.