public class PartitionedRegionDUnitTestCase extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PartitionedRegionDUnitTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
caseSetUp() |
static void |
caseTearDown() |
CacheSerializableRunnable |
createMultiplePartitionRegion(String PRPrefix,
int startIndexForRegion,
int endIndexForRegion,
int redundancy,
int localmaxMemory)
This function creates multiple partition regions in a VM.
|
CacheSerializableRunnable |
createMultiplePartitionRegion(String PRPrefix,
int startIndexForRegion,
int endIndexForRegion,
int redundancy,
int localmaxMemory,
boolean evict)
This function creates multiple partition regions in a VM.
|
protected com.gemstone.gemfire.cache.RegionAttributes<?,?> |
createRegionAttrsForPR(int red,
int localMaxMem,
long recoveryDelay,
com.gemstone.gemfire.cache.EvictionAttributes evictionAttrs) |
CacheSerializableRunnable |
destroyInMultiplePartitionRegion(String PRPrefix,
int startIndexForKey,
int endIndexForKey,
int startIndexNumOfRegions,
int endIndexNumOfRegions)
This function performs destroy() operations in multiple partitions for
destroying key-value pair so that entry corresponding to that key becomes
null
|
CacheSerializableRunnable |
destroyRegionInMultiplePartitionRegion(String PRPrefix,
int startIndexForRegion,
int endIndexForRegion)
this functions destroys regions in a node
|
CacheSerializableRunnable |
disconnectVM() |
CacheSerializableRunnable |
getCreateMultiplePRregion(String prPrefix,
int maxIndex,
int redundancy,
int localmaxMemory,
long recoveryDelay) |
CacheSerializableRunnable |
getInMultiplePartitionRegion(String PRPrefix,
int startIndexForKey,
int endIndexForKey,
int startIndexNumOfRegions,
int endIndexNumOfRegions)
This function performs get() operations in multiple Partitions Regions and
checks return values
|
CacheSerializableRunnable |
getRemovedOrDestroyedInMultiplePartitionRegion(String PRPrefix,
int startIndexForKey,
int endIndexForKey,
int startIndexNumOfRegions,
int endIndexNumOfRegions,
int afterPutFlag)
this function performs get() operations for the removed and destroyed
entries
|
CacheSerializableRunnable |
invalidatesInMultiplePartitionRegion(String PRPrefix,
int startIndexForKey,
int endIndexForKey,
int startIndexNumOfRegions,
int endIndexNumOfRegions)
This function performs invalidate() operation in multiple partition
regions.
|
CacheSerializableRunnable |
putAfterDestroyInMultiplePartitionedRegion(String PRPrefix,
int startIndexForKey,
int endIndexForKey,
int startIndexNumOfRegions,
int endIndexNumOfRegions)
This function performs put() operations in multiple Partition Regions after
the region is destroyed.
|
CacheSerializableRunnable |
putInMultiplePartitionRegion(String PRPrefix,
int startIndexForKey,
int endIndexForKey,
int startIndexNumOfRegions,
int endIndexNumOfRegions)
This function performs put() operations in multiple Partition Regions
|
void |
resetVMLogLevel() |
static int |
setLogLevel(com.gemstone.gemfire.LogWriter l,
int logLevl)
Sets the loglevel for the provided log writer
|
void |
setVMInfoLogLevel() |
void |
tearDown2()
Tear down a PartitionedRegionTestCase by cleaning up the existing cache (mainly
because we want to destroy any existing PartitionedRegions)
|
CacheSerializableRunnable |
validateMultiplePartitionRegion(String PRPrefix,
int startIndexForRegion,
int endIndexForRegion)
This function performs following checks on allPartitionRegion and
bucket2Node region of Partition Region 1.
|
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, setUp, 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 PartitionedRegionDUnitTestCase(String name)
public void setVMInfoLogLevel()
public void resetVMLogLevel()
public static int setLogLevel(com.gemstone.gemfire.LogWriter l,
int logLevl)
l - the LogWriterlogLevl - the new log level as specified in LogWriterImplpublic void tearDown2()
throws Exception
tearDown2 in class CacheTestCaseExceptionpublic static void caseSetUp()
public static void caseTearDown()
public CacheSerializableRunnable createMultiplePartitionRegion(String PRPrefix, int startIndexForRegion, int endIndexForRegion, int redundancy, int localmaxMemory)
PRPrefix - :
Used in the name of the Partition Region
These indices Represents range of the Partition RegionstartIndexForRegion - :endIndexForRegion - redundancy - localmaxMemory - evict - public CacheSerializableRunnable createMultiplePartitionRegion(String PRPrefix, int startIndexForRegion, int endIndexForRegion, int redundancy, int localmaxMemory, boolean evict)
PRPrefix - :
Used in the name of the Partition Region
These indices Represents range of the Partition RegionstartIndexForRegion - :endIndexForRegion - redundancy - localmaxMemory - evict - protected com.gemstone.gemfire.cache.RegionAttributes<?,?> createRegionAttrsForPR(int red,
int localMaxMem,
long recoveryDelay,
com.gemstone.gemfire.cache.EvictionAttributes evictionAttrs)
public CacheSerializableRunnable getCreateMultiplePRregion(String prPrefix, int maxIndex, int redundancy, int localmaxMemory, long recoveryDelay)
public CacheSerializableRunnable validateMultiplePartitionRegion(String PRPrefix, int startIndexForRegion, int endIndexForRegion)
public CacheSerializableRunnable putInMultiplePartitionRegion(String PRPrefix, int startIndexForKey, int endIndexForKey, int startIndexNumOfRegions, int endIndexNumOfRegions)
public CacheSerializableRunnable getInMultiplePartitionRegion(String PRPrefix, int startIndexForKey, int endIndexForKey, int startIndexNumOfRegions, int endIndexNumOfRegions)
public CacheSerializableRunnable putAfterDestroyInMultiplePartitionedRegion(String PRPrefix, int startIndexForKey, int endIndexForKey, int startIndexNumOfRegions, int endIndexNumOfRegions)
public CacheSerializableRunnable getRemovedOrDestroyedInMultiplePartitionRegion(String PRPrefix, int startIndexForKey, int endIndexForKey, int startIndexNumOfRegions, int endIndexNumOfRegions, int afterPutFlag)
public CacheSerializableRunnable destroyRegionInMultiplePartitionRegion(String PRPrefix, int startIndexForRegion, int endIndexForRegion)
public CacheSerializableRunnable destroyInMultiplePartitionRegion(String PRPrefix, int startIndexForKey, int endIndexForKey, int startIndexNumOfRegions, int endIndexNumOfRegions)
public CacheSerializableRunnable invalidatesInMultiplePartitionRegion(String PRPrefix, int startIndexForKey, int endIndexForKey, int startIndexNumOfRegions, int endIndexNumOfRegions)
public CacheSerializableRunnable disconnectVM()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.