public class ClientToServerDeltaDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static String |
DELTA_KEY |
static String |
LAST_KEY |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientToServerDeltaDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkDeltaFeatureNotUsed() |
static void |
checkDeltaInvoked(Integer deltaSent) |
static void |
checkForDelta() |
static void |
checkFromdeltaCounter() |
static void |
checkTodeltaCounter(Integer count) |
static void |
closeCache() |
static void |
createClientCache(String host,
Integer port,
Boolean attachListener,
Boolean isEmpty,
Boolean isCq) |
static void |
createClientCache(String host,
Integer port,
Boolean attachListener,
Boolean isEmpty,
Boolean isCq,
String[] cqQueryString) |
static void |
createClientCache(String host,
Integer port,
Boolean attachListener,
Boolean isEmpty,
Boolean isCq,
String[] cqQueryString,
Boolean registerInterestAll) |
static void |
createClientCache(String host,
Integer port,
Boolean attachListener,
Boolean isEmpty,
Boolean isCq,
String[] cqQueryString,
Boolean registerInterestAll,
Boolean enableSubscription) |
static void |
createKeys(String[] keys) |
static Integer |
createServerCache(Boolean attachListener,
Boolean isEmpty) |
static Integer |
createServerCache(Boolean attachListener,
Boolean isEmpty,
Boolean clone,
Boolean enableDelta) |
static void |
doInvalidate(String key) |
void |
initialise(Boolean cq) |
void |
initialise(Boolean clone,
String[] queries,
Boolean cq,
Boolean RI,
Boolean enableDelta) |
void |
initialise2(Boolean clone,
String[] queries,
Boolean cq,
Boolean RI,
Boolean enableDelta) |
static int |
putsWhichReturnsDeltaSent() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testC2CDeltaPropagationWithCQ()
This test has client1 connected to server1 and client2 connected to
server2.
|
void |
testC2CDeltaPropagationWithCQWithoutRI()
This test ensures that a server sends delta bytes to a client even if that
client is not interested in that event but is getting the event only
because the event satisfies a CQ which the client has registered with the
server.
|
void |
testC2SDeltaPropagationWithOldValueInvalidatedAtServer() |
void |
testClientNonEmptyEmptyServerAsFeederToPeer()
This test does the following for single key:
1)Verifies that To delta called on client should be equal to fromDeltaCounter on datastore |
void |
testClientsConnectedToEmptyServer()
This test does verifies that server with empty data policy sends deltas to
the client which can handle deltas.
|
void |
testClientSendsFullValueToServerWhenDeltaOffAtServer() |
void |
testClientToClientDeltaPropagation()
This test does the following for single key ( full cycle):
1)Verifies that client-server, peer-peer and server-client processing delta |
void |
testEmptyClientAsFeederToServer()
This test does the following for single key:
1)Verifies that cacheless client calls toDelta |
void |
testEmptyServerAsFeederToPeer()
This test does the following for single key:
1)Verifies that from delta should not called on server with empty data policy just by passed delta to data store |
void |
testPutForDeltaObjects()
This test does the following for single key 1)Verifies that we donot
loose attributes updates when delta fails
|
void |
testSendingofFullDeltaObjectsWhenFromDeltaFails()
This test does the following for single key (failure of fromDelta-
resending of full object):
1)Verifies that we donot loose attributes updates when delta fails |
static void |
verifyDeltaReceived() |
static void |
verifyDeltaSent(Integer deltas) |
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, toStringpublic ClientToServerDeltaDUnitTest(String 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 initialise(Boolean cq)
public void initialise(Boolean clone, String[] queries, Boolean cq, Boolean RI, Boolean enableDelta)
public void initialise2(Boolean clone, String[] queries, Boolean cq, Boolean RI, Boolean enableDelta)
public void testSendingofFullDeltaObjectsWhenFromDeltaFails()
public void testPutForDeltaObjects()
public void testClientToClientDeltaPropagation()
throws Exception
Exceptionpublic static Integer createServerCache(Boolean attachListener, Boolean isEmpty) throws Exception
Exceptionpublic static Integer createServerCache(Boolean attachListener, Boolean isEmpty, Boolean clone, Boolean enableDelta) throws Exception
Exceptionpublic static void createClientCache(String host, Integer port, Boolean attachListener, Boolean isEmpty, Boolean isCq) throws Exception
Exceptionpublic static void createClientCache(String host, Integer port, Boolean attachListener, Boolean isEmpty, Boolean isCq, String[] cqQueryString) throws Exception
Exceptionpublic static void createClientCache(String host, Integer port, Boolean attachListener, Boolean isEmpty, Boolean isCq, String[] cqQueryString, Boolean registerInterestAll) throws Exception
Exceptionpublic static void createClientCache(String host, Integer port, Boolean attachListener, Boolean isEmpty, Boolean isCq, String[] cqQueryString, Boolean registerInterestAll, Boolean enableSubscription) throws Exception
Exceptionpublic static void closeCache()
public void testEmptyClientAsFeederToServer()
public void testEmptyServerAsFeederToPeer()
public void testClientsConnectedToEmptyServer()
public void testClientNonEmptyEmptyServerAsFeederToPeer()
public void testC2CDeltaPropagationWithCQ()
throws Exception
Exceptionpublic void testC2CDeltaPropagationWithCQWithoutRI()
throws Exception
Exceptionpublic void testClientSendsFullValueToServerWhenDeltaOffAtServer()
public void testC2SDeltaPropagationWithOldValueInvalidatedAtServer()
throws Exception
Exceptionpublic static void doInvalidate(String key)
public static void verifyDeltaReceived()
public static void verifyDeltaSent(Integer deltas)
public static void checkFromdeltaCounter()
public static void checkTodeltaCounter(Integer count)
public static void checkDeltaFeatureNotUsed()
public static void createKeys(String[] keys)
public static int putsWhichReturnsDeltaSent()
throws Exception
Exceptionpublic static void checkDeltaInvoked(Integer deltaSent)
public static void checkForDelta()
public static void waitForLastKey()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.