public class DeltaPropagationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static int |
C2S2S_SERVER_LISTENER |
protected static com.gemstone.gemfire.cache.Cache |
cache |
static int |
CLIENT_LISTENER |
static int |
CLIENT_LISTENER_2 |
static String |
CREATE |
static String |
DELTA_KEY |
static String |
DESTROY |
static int |
DURABLE_CLIENT_LISTENER |
static int |
EVENTS_SIZE |
static String |
INVALIDATE |
static String |
LAST_KEY |
static int |
LAST_KEY_LISTENER |
static int |
NO_LISTENER |
protected static com.gemstone.gemfire.cache.client.Pool |
pool |
static int |
SERVER_LISTENER |
static String |
UPDATE |
protected static VM |
VM0 |
protected static VM |
VM1 |
protected static VM |
VM2 |
protected static VM |
VM3 |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DeltaPropagationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertOp(String op,
Integer num) |
static void |
assertValue(String rName,
String key,
Object expected) |
static void |
closeCache() |
static void |
closeCache(boolean keepalive) |
static void |
confirmEviction(Integer port) |
static void |
createAndUpdateDeltas() |
static void |
createAnEntry() |
static void |
createClientCache(int[] ports,
String rLevel,
String conflate,
Integer listener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) |
static void |
createClientCache(Integer port1,
Integer port2,
String rLevel) |
static void |
createClientCache(Integer port1,
Integer port2,
String rLevel,
Boolean addListener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs) |
static void |
createClientCache(Integer port1,
Integer port2,
String rLevel,
Boolean addListener,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) |
static void |
createClientCache(Integer port1,
Integer port2,
String rLevel,
Integer listener) |
static void |
createClientCache(Integer port1,
Integer port2,
String rLevel,
String conflate,
Integer listener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) |
static void |
createDelta() |
static void |
createDeltas() |
static void |
createDurableCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties,
Integer listenerCode,
Boolean close) |
static Integer |
createServerCache(String ePolicy) |
static Integer |
createServerCache(String ePolicy,
Integer cap) |
static Integer |
createServerCache(String ePolicy,
Integer cap,
Integer listenerCode) |
static Integer |
createServerCache(String ePolicy,
Integer cap,
Integer listenerCode,
Boolean conflate,
com.gemstone.gemfire.compression.Compressor compressor) |
static void |
doLocalOp(String op,
String rName,
String key) |
static void |
doPuts() |
static void |
doPuts(Integer num) |
static com.gemstone.gemfire.cache.CacheListener |
getCacheListener(Integer code) |
static void |
invalidateDelta() |
static boolean |
isLastKeyReceived() |
static void |
prepareDeltas() |
static void |
prepareErroneousDeltasForFromDelta() |
static void |
prepareErroneousDeltasForToDelta() |
static void |
registerInterestListAll() |
static void |
resetAll() |
static void |
setLastKeyReceived(boolean val) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testBug40165ClientFailsOver() |
void |
testBug40165ClientReconnects() |
void |
testC2S2SDeltaPropagation()
Tests that an update on a server with full Delta object causes distribution
of the full Delta instance, and not its delta bits, to other peers, even if
that instance's
hasDelta() returns true. |
void |
testS2CDeltaPropagationWithClientConflationON() |
void |
testS2CDeltaPropagationWithGIIAndFailover() |
void |
testS2CDeltaPropagationWithOnlyCreateEvents() |
void |
testS2CDeltaPropagationWithServerConflationON() |
void |
testS2CFailureInFromDeltaMethod() |
void |
testS2CFailureInToDeltaMethod() |
void |
testS2CSuccessfulDeltaPropagation() |
void |
testS2CSuccessfulDeltaPropagationWithCompression() |
void |
testS2CWithInvalidatedOldValueAtClient() |
void |
testS2CWithLocallyDestroyedOldValueAtClient() |
void |
testS2CWithOldValueAtClientOverflownToDisk() |
void |
testS2S2CDeltaPropagationWithHAOverflow() |
static void |
updateDelta() |
static void |
verifyData(int creates,
int updates) |
static void |
verifyOverflowOccured(long evictions,
int regionsize) |
static void |
verifyRegionSize(Integer regionSize,
Integer msgsRegionsize,
Integer port) |
static void |
waitForLastKey() |
addExpectedException, 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, toStringprotected static com.gemstone.gemfire.cache.Cache cache
protected static com.gemstone.gemfire.cache.client.Pool pool
protected static VM VM0
protected static VM VM1
protected static VM VM2
protected static VM VM3
public static final int EVENTS_SIZE
public static String DELTA_KEY
public static String LAST_KEY
public static final int NO_LISTENER
public static final int CLIENT_LISTENER
public static final int SERVER_LISTENER
public static final int C2S2S_SERVER_LISTENER
public static final int LAST_KEY_LISTENER
public static final int DURABLE_CLIENT_LISTENER
public static final int CLIENT_LISTENER_2
public static final String CREATE
public static final String UPDATE
public static final String INVALIDATE
public static final String DESTROY
public DeltaPropagationDUnitTest(String name)
name - public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic void testS2CSuccessfulDeltaPropagationWithCompression()
throws Exception
Exceptionpublic void testS2CSuccessfulDeltaPropagation()
throws Exception
Exceptionpublic void testS2CFailureInToDeltaMethod()
throws Exception
Exceptionpublic void testS2CFailureInFromDeltaMethod()
throws Exception
Exceptionpublic void testS2CWithOldValueAtClientOverflownToDisk()
throws Exception
Exceptionpublic void testS2CWithLocallyDestroyedOldValueAtClient()
throws Exception
Exceptionpublic void testS2CWithInvalidatedOldValueAtClient()
throws Exception
Exceptionpublic void testS2CDeltaPropagationWithClientConflationON()
throws Exception
Exceptionpublic void testS2CDeltaPropagationWithServerConflationON()
throws Exception
Exceptionpublic void testS2CDeltaPropagationWithOnlyCreateEvents()
throws Exception
Exceptionpublic void testC2S2SDeltaPropagation()
throws Exception
hasDelta() returns true.Exceptionpublic void testS2S2CDeltaPropagationWithHAOverflow()
throws Exception
Exceptionpublic void testS2CDeltaPropagationWithGIIAndFailover()
throws Exception
Exceptionpublic void testBug40165ClientReconnects()
throws Exception
Exceptionpublic void testBug40165ClientFailsOver()
throws Exception
Exceptionpublic static void confirmEviction(Integer port)
public static void waitForLastKey()
public static void prepareDeltas()
public static void prepareErroneousDeltasForToDelta()
public static void prepareErroneousDeltasForFromDelta()
public static void doPuts()
public static void doPuts(Integer num)
public static void createAndUpdateDeltas()
public static void createDelta()
public static void updateDelta()
public static void createDeltas()
public static void createAnEntry()
public static void invalidateDelta()
public static void verifyOverflowOccured(long evictions,
int regionsize)
public static void verifyData(int creates,
int updates)
public static Integer createServerCache(String ePolicy) throws Exception
Exceptionpublic static Integer createServerCache(String ePolicy, Integer cap) throws Exception
Exceptionpublic static Integer createServerCache(String ePolicy, Integer cap, Integer listenerCode) throws Exception
Exceptionpublic static Integer createServerCache(String ePolicy, Integer cap, Integer listenerCode, Boolean conflate, com.gemstone.gemfire.compression.Compressor compressor) throws Exception
Exceptionpublic static com.gemstone.gemfire.cache.CacheListener getCacheListener(Integer code)
public static void createClientCache(Integer port1, Integer port2, String rLevel) throws Exception
Exceptionpublic static void createClientCache(Integer port1, Integer port2, String rLevel, Boolean addListener, com.gemstone.gemfire.cache.EvictionAttributes evictAttrs) throws Exception
Exceptionpublic static void createClientCache(Integer port1, Integer port2, String rLevel, Boolean addListener, com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) throws Exception
Exceptionpublic static void createClientCache(Integer port1, Integer port2, String rLevel, Integer listener) throws Exception
Exceptionpublic static void createClientCache(Integer port1, Integer port2, String rLevel, String conflate, Integer listener, com.gemstone.gemfire.cache.EvictionAttributes evictAttrs, com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) throws Exception
Exceptionpublic static void createClientCache(int[] ports,
String rLevel,
String conflate,
Integer listener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs)
throws Exception
Exceptionpublic static void verifyRegionSize(Integer regionSize, Integer msgsRegionsize, Integer port)
public static void createDurableCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties,
Integer listenerCode,
Boolean close)
throws Exception
Exceptionpublic static void registerInterestListAll()
public static void closeCache()
public static void closeCache(boolean keepalive)
public static boolean isLastKeyReceived()
public static void setLastKeyReceived(boolean val)
public static void resetAll()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.