public class CompressionCacheListenerDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_1
A key.
|
static java.lang.String |
KEY_2
Another key.
|
static java.lang.String |
KEY_3
Yet another key.
|
static java.util.concurrent.BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> |
LISTENER_QUEUE
Queues events received by the CacheListener.
|
static java.lang.String |
REGION_NAME
The name of our test region.
|
static int |
TEST_VM
Test virtual machine number.
|
static java.lang.String |
VALUE_1
A value.
|
static java.util.concurrent.BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> |
WRITER_QUEUE
A queue for storing events received by a CacheWriter.
|
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
CompressionCacheListenerDUnitTest(java.lang.String name)
Creates a new CompressionCacheListenerDUnitTest.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
createCompressedRegionOnVm(VM vm,
java.lang.String name,
com.gemstone.gemfire.compression.Compressor compressor,
boolean offHeap) |
protected void |
createRegion() |
protected VM |
getVM(int vm)
Returns the VM for a given identifier.
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testCacheListenerAndWriter()
Tests CacheWriter and CacheListener events on the test vm.
|
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, toStringpublic static final java.lang.String REGION_NAME
public static final int TEST_VM
public static final java.lang.String KEY_1
public static final java.lang.String KEY_2
public static final java.lang.String KEY_3
public static final java.lang.String VALUE_1
public static final java.util.concurrent.BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> LISTENER_QUEUE
public static final java.util.concurrent.BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> WRITER_QUEUE
public CompressionCacheListenerDUnitTest(java.lang.String name)
name - a test name.public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionprotected void createRegion()
public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionprotected VM getVM(int vm)
vm - a virtual machine identifier.public void testCacheListenerAndWriter()
protected boolean createCompressedRegionOnVm(VM vm, java.lang.String name, com.gemstone.gemfire.compression.Compressor compressor, boolean offHeap)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.