public class OperationsPropagationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREATE_KEY |
static java.lang.String |
CREATE_VALUE |
static java.lang.String |
DESTROY_KEY |
static java.lang.String |
DESTROY_VALUE |
static java.lang.String |
INVALIDATE_KEY |
static java.lang.String |
INVALIDATE_VALUE |
static int |
PORT1
Port of server1
|
static int |
PORT2
Port of server2
|
static java.lang.String |
PUTALL_KEY |
static java.lang.String |
PUTALL_KEY2 |
static java.lang.String |
PUTALL_VALUE |
static java.lang.String |
PUTALL_VALUE2 |
protected static com.gemstone.gemfire.cache.Region |
region
region to be created for the test
|
static java.lang.String |
UPDATE_KEY |
static java.lang.String |
UPDATE_VALUE1 |
static java.lang.String |
UPDATE_VALUE2 |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
OperationsPropagationDUnitTest(java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertKeyValuePresent()
assert the initial key values are present
|
static void |
assertOperationsSucceeded()
assert the operations reached the client successfully
|
static void |
closeCache()
closes the cache and disconnects the vm from teh distributed system
|
static void |
createClientCache(java.lang.String host,
java.lang.Integer port2)
create the client and connect it to the server with the given port
|
static java.lang.Integer |
createServerCache()
Create the server
|
static void |
doOperations()
do the operations which you want to propagate
|
static void |
initialPutKeyValue()
put the initial keys and values
|
void |
setUp()
Create the server1, server2 (in the same DS) and client1 (which is
connected only to server2
|
void |
tearDown2()
close the caches of the client and the servers
|
void |
testOperationsPropagation()
This test: 1) First the initial keys and values 2) Verify that the initial
keys and values have reached the client 3) Do the operations which we want
to propagate (create, update, invalidate and destroy) 4) Verify the
operations reached the client
|
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 static int PORT1
public static int PORT2
protected static com.gemstone.gemfire.cache.Region region
public static final java.lang.String CREATE_KEY
public static final java.lang.String CREATE_VALUE
public static final java.lang.String UPDATE_KEY
public static final java.lang.String UPDATE_VALUE1
public static final java.lang.String UPDATE_VALUE2
public static final java.lang.String INVALIDATE_KEY
public static final java.lang.String INVALIDATE_VALUE
public static final java.lang.String DESTROY_KEY
public static final java.lang.String DESTROY_VALUE
public static final java.lang.String PUTALL_KEY
public static final java.lang.String PUTALL_VALUE
public static final java.lang.String PUTALL_KEY2
public static final java.lang.String PUTALL_VALUE2
public OperationsPropagationDUnitTest(java.lang.String name)
name - public void setUp()
throws java.lang.Exception
setUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static void closeCache()
public static java.lang.Integer createServerCache()
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.String host,
java.lang.Integer port2)
throws java.lang.Exception
port2 - java.lang.Exceptionpublic void testOperationsPropagation()
throws java.lang.Exception
java.lang.Exceptionpublic static void initialPutKeyValue()
public static void doOperations()
public static void assertKeyValuePresent()
public static void assertOperationsSucceeded()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.