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 java.lang.String |
CREATE |
static java.lang.String |
DELTA_KEY |
static java.lang.String |
DESTROY |
static int |
DURABLE_CLIENT_LISTENER |
static int |
EVENTS_SIZE |
static java.lang.String |
INVALIDATE |
static java.lang.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 java.lang.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(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertOp(java.lang.String op,
java.lang.Integer num) |
static void |
assertValue(java.lang.String rName,
java.lang.String key,
java.lang.Object expected) |
static void |
closeCache() |
static void |
closeCache(boolean keepalive) |
static void |
confirmEviction(java.lang.Integer port) |
static void |
createAndUpdateDeltas() |
static void |
createAnEntry() |
static void |
createClientCache(int[] ports,
java.lang.String rLevel,
java.lang.String conflate,
java.lang.Integer listener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.Boolean addListener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.Boolean addListener,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.Integer listener) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.String conflate,
java.lang.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,
java.lang.String regionName,
java.util.Properties dsProperties,
java.lang.Integer listenerCode,
java.lang.Boolean close) |
static java.lang.Integer |
createServerCache(java.lang.String ePolicy) |
static java.lang.Integer |
createServerCache(java.lang.String ePolicy,
java.lang.Integer cap) |
static java.lang.Integer |
createServerCache(java.lang.String ePolicy,
java.lang.Integer cap,
java.lang.Integer listenerCode) |
static java.lang.Integer |
createServerCache(java.lang.String ePolicy,
java.lang.Integer cap,
java.lang.Integer listenerCode,
java.lang.Boolean conflate,
com.gemstone.gemfire.compression.Compressor compressor) |
static void |
doLocalOp(java.lang.String op,
java.lang.String rName,
java.lang.String key) |
static void |
doPuts() |
static void |
doPuts(java.lang.Integer num) |
static com.gemstone.gemfire.cache.CacheListener |
getCacheListener(java.lang.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(java.lang.Integer regionSize,
java.lang.Integer msgsRegionsize,
java.lang.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 java.lang.String DELTA_KEY
public static java.lang.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 java.lang.String CREATE
public static final java.lang.String UPDATE
public static final java.lang.String INVALIDATE
public static final java.lang.String DESTROY
public DeltaPropagationDUnitTest(java.lang.String name)
name - public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic void testS2CSuccessfulDeltaPropagationWithCompression()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CSuccessfulDeltaPropagation()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CFailureInToDeltaMethod()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CFailureInFromDeltaMethod()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CWithOldValueAtClientOverflownToDisk()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CWithLocallyDestroyedOldValueAtClient()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CWithInvalidatedOldValueAtClient()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CDeltaPropagationWithClientConflationON()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CDeltaPropagationWithServerConflationON()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CDeltaPropagationWithOnlyCreateEvents()
throws java.lang.Exception
java.lang.Exceptionpublic void testC2S2SDeltaPropagation()
throws java.lang.Exception
hasDelta() returns true.java.lang.Exceptionpublic void testS2S2CDeltaPropagationWithHAOverflow()
throws java.lang.Exception
java.lang.Exceptionpublic void testS2CDeltaPropagationWithGIIAndFailover()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug40165ClientReconnects()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug40165ClientFailsOver()
throws java.lang.Exception
java.lang.Exceptionpublic static void doLocalOp(java.lang.String op,
java.lang.String rName,
java.lang.String key)
public static void assertOp(java.lang.String op,
java.lang.Integer num)
public static void assertValue(java.lang.String rName,
java.lang.String key,
java.lang.Object expected)
public static void confirmEviction(java.lang.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(java.lang.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 java.lang.Integer createServerCache(java.lang.String ePolicy)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createServerCache(java.lang.String ePolicy,
java.lang.Integer cap)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createServerCache(java.lang.String ePolicy,
java.lang.Integer cap,
java.lang.Integer listenerCode)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createServerCache(java.lang.String ePolicy,
java.lang.Integer cap,
java.lang.Integer listenerCode,
java.lang.Boolean conflate,
com.gemstone.gemfire.compression.Compressor compressor)
throws java.lang.Exception
java.lang.Exceptionpublic static com.gemstone.gemfire.cache.CacheListener getCacheListener(java.lang.Integer code)
public static void createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.Boolean addListener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.Boolean addListener,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.Integer listener)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.Integer port1,
java.lang.Integer port2,
java.lang.String rLevel,
java.lang.String conflate,
java.lang.Integer listener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(int[] ports,
java.lang.String rLevel,
java.lang.String conflate,
java.lang.Integer listener,
com.gemstone.gemfire.cache.EvictionAttributes evictAttrs,
com.gemstone.gemfire.cache.ExpirationAttributes expAttrs)
throws java.lang.Exception
java.lang.Exceptionpublic static void verifyRegionSize(java.lang.Integer regionSize,
java.lang.Integer msgsRegionsize,
java.lang.Integer port)
public static void createDurableCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.Properties dsProperties,
java.lang.Integer listenerCode,
java.lang.Boolean close)
throws java.lang.Exception
java.lang.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.