public class PartitionedRegionDUnitTest extends MultiVMRegionTestCase
region
that has a scope of distributed ACK
and partition-attributes.MultiVMRegionTestCase.MyTransactionListenerRegionTestCase.TestExpiryDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static boolean |
InvalidateInvoked |
CCRegioneventCount, preSnapshotRegioncachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PartitionedRegionDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected com.gemstone.gemfire.cache.RegionAttributes |
getNonPRRegionAttributes()
Returns region attributes with a distributed-ack scope
|
protected com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes()
Returns region attributes for a partitioned region with distributed-ack scope
|
static int |
setLogLevel(com.gemstone.gemfire.LogWriter l,
int logLevl) |
protected boolean |
supportsLocalDestroyAndLocalInvalidate()
Indicate whether localDestroy and localInvalidate are supported
|
protected boolean |
supportsNetLoad()
Indicate whether this region supports netload
|
protected boolean |
supportsReplication()
Indicate whether replication/GII supported
|
protected boolean |
supportsSubregions()
Indicate whether subregions are supported
|
void |
testBadHash() |
void |
testCacheLoaderModifyingArgument()
Tests that when a
CacheLoader modifies the callback
argument in place, the change is visible to the
CacheWriter even if it is in another VM. |
void |
testDefinedEntryUpdated()
Two VMs create a region.
|
void |
testEntryUserAttribute()
Tests a region entry's user attribute
|
void |
testExtendedKeysValues()
test with multiple vms and a decent spread of keys
|
void |
testIncompatibleSubregions()
Tests the compatibility of creating certain kinds of subregions
of a local region.
|
void |
testInvalidateRegion()
Tests invalidating an entire region
|
void |
testLocalAndRemoteCacheWriters()
Tests that, when given a choice, a local
CacheWriter
is invoked instead of a remote one. |
void |
testLocalCacheLoader()
Tests that a local loader is preferred to a remote one
|
void |
testLocalDestroyRegion()
Tests locally destroying an entire region and that accessing it
after it has been destory causes a
RegionDestroyedException. |
void |
testLocalInvalidateRegion()
Tests locally invalidating an entire region
|
void |
testRegionInvalidationWithAdjunctMessages()
Bug #47235 concerns assertion failures being thrown when there is a
member that receives adjunct messages (as in a WAN gateway, a peer
with clients, etc).
|
void |
testRemoteCacheListener()
Tests that a
CacheListener is invoked in a remote VM. |
void |
testRootSnapshot() |
void |
testSnapshot() |
_ttestOrderedUpdates, assertCacheCallbackEvents, assertNoClearTimeouts, clearCCRegion, concurrentMapTest, createRegionWithAttribute, DISABLED_TILL_NEW_TX_IMPL_COMPLETE_testTXNonblockingGetInitialImage, disconnect, doOpsLoopNoFlush, getCCRegionContents, getCCRegionVersions, getCCRegionVersionVector, getMemberId, getRegionAttributes, performOps4ClearWithConcurrentEvents, supportsTransactions, tearDown2, testCacheLoaderWithNetLoad, testCacheLoaderWithNetSearch, testConcurrentOperations, testDeltaWithReplicate, testDistributedDestroy, testDistributedGet, testDistributedInvalidate, testDistributedInvalidate4, testDistributedPut, testDistributedPutNoUpdate, testDistributedRegionDestroy, testDistributedRegionInvalidate, testDistributedUpdate, testEntryTtlDestroyEvent, testEntryTtlLocalDestroy, testGetInitialImage, testLargeGetInitialImage, testLocalDestroy, testLocalRegionDestroy, testMirroredDataFromNonMirrored, testMirroredLocalLoad, testMirroredNetLoad, testNBRegionDestructionDuringGetInitialImage, testNBRegionInvalidationDuringGetInitialImage, testNetSearchObservesIdleTime, testNetSearchObservesTtl, testNoDataSerializer, testNoInstantiator, testNoLoaderWithInvalidEntry, testNoMirroredDataToNonMirrored, testNonblockingGetInitialImage, testNoRegionKeepAlive, testNoRemoteCacheLoader, testRemoteCacheListenerInSubregion, testRemoteCacheLoader, testRemoteCacheLoaderArg, testRemoteCacheLoaderException, testRemoteCacheWriter, testRemoteLoaderNetSearch, testReplicate, testTXMultiRegion, testTXRmtMirror, testTXSimpleOps, testTXUpdateLoadNoConflict, testUpdateResetsIdleTime, todo_testTXAlgebra, versionTestClearOnNonReplicateWithConcurrentEvents, versionTestClearWithConcurrentEvents, versionTestClearWithConcurrentEventsAsync, versionTestConcurrentEvents, versionTestConcurrentEventsOnEmptyRegion, versionTestConcurrentEventsOnNonReplicatedRegion, versionTestGetAllWithVersions, versionTestGIISendsTombstones, versionTestRegionVersionVectors, versionTestTombstones, waitForAsyncProcessing, z_versionTestClearWithConcurrentEventscreateRegion, createRootRegion, entryIsLocal, pauseIfNecessary, pauseIfNecessary, remoteTestPostSnapshot, testBadRegionAccess, testCloseRegion, testContainsKey, testCreateSubregions, testCustomEntryIdleReset, testCustomEntryIdleTimeout1, testCustomEntryIdleTimeout2, testCustomEntryIdleTimeout3, testCustomEntryTtl1, testCustomEntryTtl2, testCustomEntryTtl3, testCustomIdleOnce, testDestroyEntry, testDestroyRegion, testEntries, testEntriesRecursive, testEntryExpirationAfterMutate, testEntryFromLoadTtlInvalidate, testEntryIdleDestroy, testEntryIdleInvalidate, testEntryIdleReset, testEntryIdleTimeout3, testEntryIdleTtl, testEntryTtl3, testEntryTtlDestroy, testEntryTtlInvalidate, testGetCache, testGetName, testGetParentRegion, testGetPathFromRoot, testInvalidateEntry, testKeys, testLocalDestroyEntry, testLocalInvalidateEntry, testNulls, testPutNonExistentEntry, testRegionExpirationAfterMutate, testRegionIdleDestroy, testRegionIdleInvalidate, testRegionTtlDestroy, testRegionTtlInvalidate, testRegionUserAttribute, testSubregions, testSubregionsRecursive, testValues, waitForDestroy, waitForInvalidate, waitForRegionDestroyaddExceptionTag1, 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 PartitionedRegionDUnitTest(String name)
protected boolean supportsSubregions()
RegionTestCasesupportsSubregions in class RegionTestCaseprotected boolean supportsNetLoad()
MultiVMRegionTestCasesupportsNetLoad in class MultiVMRegionTestCaseprotected boolean supportsReplication()
MultiVMRegionTestCasesupportsReplication in class MultiVMRegionTestCaseprotected boolean supportsLocalDestroyAndLocalInvalidate()
RegionTestCasesupportsLocalDestroyAndLocalInvalidate in class RegionTestCasepublic void testCacheLoaderModifyingArgument()
throws InterruptedException
MultiVMRegionTestCaseCacheLoader modifies the callback
argument in place, the change is visible to the
CacheWriter even if it is in another VM.testCacheLoaderModifyingArgument in class MultiVMRegionTestCaseInterruptedExceptionpublic void testLocalAndRemoteCacheWriters()
throws InterruptedException
MultiVMRegionTestCaseCacheWriter
is invoked instead of a remote one.testLocalAndRemoteCacheWriters in class MultiVMRegionTestCaseInterruptedExceptionpublic void testLocalCacheLoader()
MultiVMRegionTestCasetestLocalCacheLoader in class MultiVMRegionTestCaseprotected com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes()
getRegionAttributes in class RegionTestCaseprotected com.gemstone.gemfire.cache.RegionAttributes getNonPRRegionAttributes()
public static int setLogLevel(com.gemstone.gemfire.LogWriter l,
int logLevl)
public void testRegionInvalidationWithAdjunctMessages()
throws Exception
Exceptionpublic void testIncompatibleSubregions()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionRegion.createSubregion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes<SK, SV>)public void testExtendedKeysValues()
public void testDefinedEntryUpdated()
MultiVMRegionTestCasetestDefinedEntryUpdated in class MultiVMRegionTestCasepublic void testRemoteCacheListener()
MultiVMRegionTestCaseCacheListener is invoked in a remote VM.testRemoteCacheListener in class MultiVMRegionTestCasepublic void testEntryUserAttribute()
RegionTestCasetestEntryUserAttribute in class RegionTestCasepublic void testInvalidateRegion()
RegionTestCasetestInvalidateRegion in class RegionTestCasepublic void testLocalDestroyRegion()
RegionTestCaseRegionDestroyedException.testLocalDestroyRegion in class RegionTestCaseRegion.localDestroyRegion()public void testLocalInvalidateRegion()
RegionTestCasetestLocalInvalidateRegion in class RegionTestCasepublic void testSnapshot()
testSnapshot in class RegionTestCasepublic void testRootSnapshot()
testRootSnapshot in class RegionTestCasepublic void testBadHash()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.