public class WANCommandTestBase extends CliCommandTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2USE_HTTP_SYSTEM_PROPERTYlogPerTest, reconnect, system, testName| Constructor and Description |
|---|
WANCommandTestBase(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static int |
createAndStartReceiver(int locPort) |
static int |
createAndStartReceiverWithGroup(int locPort,
String groups) |
static void |
createCache(Integer locPort) |
static void |
createCacheWithGroups(Integer locPort,
String groups) |
static Integer |
createFirstLocatorWithDSId(int dsId) |
static Integer |
createFirstRemoteLocator(int dsId,
int remoteLocPort) |
static int |
createReceiver(int locPort) |
static int |
createReceiverWithGroup(int locPort,
String groups) |
static void |
createSender(String dsName,
int remoteDsId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
com.gemstone.gemfire.cache.wan.GatewayEventFilter filter,
boolean isManulaStart) |
void |
enableManagement()
Enable system property gemfire.disableManagement false in each VM.
|
static int |
getLocatorPort() |
static com.gemstone.gemfire.distributed.DistributedMember |
getMember() |
static void |
pauseSender(String senderId) |
void |
setUp()
Sets up the test (noop).
|
static void |
startReceiver() |
static void |
startSender(String senderId) |
static void |
stopReceiver() |
void |
tearDown2()
Tears down the test.
|
static void |
verifyReceiverCreationWithAttributes(boolean isRunning,
int startPort,
int endPort,
String bindAddress,
int maxTimeBetweenPings,
int socketBufferSize,
List<String> expectedGatewayTransportFilters) |
static void |
verifyReceiverState(boolean isRunning) |
static void |
verifySenderAttributes(String senderId,
int remoteDsID,
boolean isParallel,
boolean manualStart,
int socketBufferSize,
int socketReadTimeout,
boolean enableBatchConflation,
int batchSize,
int batchTimeInterval,
boolean enablePersistence,
boolean diskSynchronous,
int maxQueueMemory,
int alertThreshold,
int dispatcherThreads,
com.gemstone.gemfire.cache.util.Gateway.OrderPolicy orderPolicy,
List<String> expectedGatewayEventFilters,
List<String> expectedGatewayTransportFilters) |
static void |
verifySenderState(String senderId,
boolean isRunning,
boolean isPaused) |
commandResultToString, countLinesInString, countMatchesInString, createDefaultSetup, createShell, debug, destroyDefaultSetup, error, error, executeCommand, executeCommand, executeCommandWithoutClear, executeCommandWithoutClear, extractCommandResult, getDefaultShell, getLineFromString, info, printResult, shellConnect, stringContainsLineaddExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, 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 WANCommandTestBase(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class CliCommandTestBaseExceptionpublic static Integer createFirstLocatorWithDSId(int dsId)
public static Integer createFirstRemoteLocator(int dsId, int remoteLocPort)
public static void createCache(Integer locPort)
public static void createSender(String dsName, int remoteDsId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, com.gemstone.gemfire.cache.wan.GatewayEventFilter filter, boolean isManulaStart)
public static void startSender(String senderId)
public static void pauseSender(String senderId)
public static int createAndStartReceiver(int locPort)
public static int createReceiver(int locPort)
public static int createReceiverWithGroup(int locPort,
String groups)
public static void startReceiver()
public static void stopReceiver()
public static int createAndStartReceiverWithGroup(int locPort,
String groups)
public static com.gemstone.gemfire.distributed.DistributedMember getMember()
public static int getLocatorPort()
public void enableManagement()
Exceptionpublic static void verifySenderState(String senderId, boolean isRunning, boolean isPaused)
public static void verifySenderAttributes(String senderId, int remoteDsID, boolean isParallel, boolean manualStart, int socketBufferSize, int socketReadTimeout, boolean enableBatchConflation, int batchSize, int batchTimeInterval, boolean enablePersistence, boolean diskSynchronous, int maxQueueMemory, int alertThreshold, int dispatcherThreads, com.gemstone.gemfire.cache.util.Gateway.OrderPolicy orderPolicy, List<String> expectedGatewayEventFilters, List<String> expectedGatewayTransportFilters)
public static void verifyReceiverState(boolean isRunning)
public static void verifyReceiverCreationWithAttributes(boolean isRunning,
int startPort,
int endPort,
String bindAddress,
int maxTimeBetweenPings,
int socketBufferSize,
List<String> expectedGatewayTransportFilters)
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CliCommandTestBaseExceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.