public class WANTestBase extends DistributedTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
WANTestBase.MyGatewayEventFilter |
static class |
WANTestBase.MyLocatorCallback |
static class |
WANTestBase.PDXGatewayEventFilter |
protected static class |
WANTestBase.PutTask |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion |
customerRegion |
protected static String |
customerRegionName |
protected static boolean |
destroyFlag |
protected static com.gemstone.gemfire.cache.wan.GatewayEventFilter |
eventFilter |
protected static com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener |
eventListener1 |
protected static com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener |
eventListener2 |
protected static List<QueueListener> |
gatewayListeners |
protected static QueueListener |
listener1 |
protected static QueueListener |
listener2 |
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion |
orderRegion |
protected static String |
orderRegionName |
protected static com.gemstone.gemfire.cache.Region |
region |
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion |
shipmentRegion |
protected static String |
shipmentRegionName |
protected static VM |
vm0 |
protected static VM |
vm1 |
protected static VM |
vm2 |
protected static VM |
vm3 |
protected static VM |
vm4 |
protected static VM |
vm5 |
protected static VM |
vm6 |
protected static VM |
vm7 |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
WANTestBase(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCacheListenerAndCloseCache(String regionName) |
static void |
addCacheListenerAndDestroyRegion(String regionName) |
static void |
addListenerAndKillPrimary() |
static void |
addListenerOnBucketRegion(String regionName,
int numBuckets) |
static void |
addListenerOnGateway(String gatewayHubId) |
static void |
addListenerOnQueueBucketRegion(String senderId,
int numBuckets) |
static void |
addListenerOnRegion(String regionName) |
static void |
addQueueListener(String senderId,
boolean isParallel) |
static void |
addSecondQueueListener(String senderId,
boolean isParallel) |
static void |
bringBackLocatorOnOldPort(int dsId,
int remoteLocPort,
int oldPort) |
static void |
checkAllSiteMetaData(Map<Integer,List<Integer>> dsVsPorts) |
static Long |
checkAllSiteMetaDataFor3Sites(Map<Integer,Set<String>> dsVsPort) |
static void |
checkAsyncEventQueueBatchStats(String asyncQueueId,
int batches) |
static void |
checkAsyncEventQueueConflatedStats(String asyncEventQueueId,
int eventsConflated) |
static void |
checkAsyncEventQueueSize(String asyncQueueId,
int numQueueEntries) |
static void |
checkAsyncEventQueueStats_Failover(String asyncEventQueueId,
int eventsReceived) |
static void |
checkAsyncEventQueueStats(String queueId,
int queueSize,
int eventsReceived,
int eventsQueued,
int eventsDistributed) |
static void |
checkAsyncEventQueueUnprocessedStats(String asyncQueueId,
int events) |
static void |
checkBatchStats(String senderId,
boolean batchesDistributed,
boolean bathcesRedistributed) |
static void |
checkBatchStats(String senderId,
int batches) |
static HashMap |
checkBR(String regionName,
int numBuckets) |
static void |
checkConflatedStats(String senderId,
int eventsConflated) |
static void |
CheckContent(String regionName,
int regionSize) |
static void |
checkEventFilteredStats(String senderId,
int eventsFiltered) |
static void |
checkExcepitonStats(int exceptionsOccured) |
static void |
checkGatewayReceiverStats(int processBatches,
int eventsReceived,
int creates) |
static void |
checkGatewayReceiverStatsHA(int processBatches,
int eventsReceived,
int creates) |
static HashMap |
checkGateways(String gatewayHubId) |
static void |
checkLocatorsinSender(String senderId,
InetSocketAddress locatorToWaitFor) |
static void |
checkMinimumGatewayReceiverStats(int processBatches,
int eventsReceived) |
static HashMap |
checkPR(String regionName) |
static void |
checkPRQLocalSize(String senderId,
int numQueueEntries)
To be used only for ParallelGatewaySender.
|
static HashMap |
checkQueue_BR(String senderId,
int numBuckets) |
static HashMap |
checkQueue_PR(String senderId) |
static HashMap |
checkQueue() |
static HashMap |
checkQueue2() |
static void |
checkQueueOnSecondary(Map primaryUpdatesMap) |
static void |
checkQueueSize(String senderId,
int numQueueEntries) |
static void |
checkQueueStats(String senderId,
int queueSize,
int eventsReceived,
int eventsQueued,
int eventsDistributed) |
static void |
checkStats_Failover(String senderId,
int eventsReceived) |
static void |
checkUnProcessedStats(String senderId,
int events) |
static void |
closeCache() |
static void |
createAsyncEventQueue(String asyncChannelId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
String diskStoreName,
boolean isDiskSynchronous) |
static void |
createAsyncEventQueueWithCustomListener(String asyncChannelId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
String diskStoreName,
boolean isDiskSynchronous) |
static String |
createAsyncEventQueueWithDiskStore(String asyncChannelId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isPersistent,
String diskStoreName) |
static void |
createAsyncEventQueueWithListener2(String asyncChannelId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isPersistent,
String diskStoreName) |
static void |
createCache_PDX(Integer locPort) |
protected static void |
createCache(boolean management,
Integer locPort) |
static void |
createCache(Integer locPort) |
static void |
createCache(Integer locPort1,
Integer locPort2) |
static Integer |
createCacheServer()
Method that creates a bridge server
|
static void |
createCacheWithoutLocator(Integer mCastPort) |
static void |
createClientWithLocator(int port0,
String host,
String regionName) |
static void |
createColocatedPartitionedRegion(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets,
String colocatedWith,
Boolean offHeap) |
static void |
createColocatedPartitionedRegions(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets,
Boolean offHeap) |
static void |
createColocatedPartitionedRegions2(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets,
Boolean offHeap) |
static void |
createColocatedPartitionedRegionWithAsyncEventQueue(String regionName,
String asyncEventQueueId,
Integer totalNumBuckets,
String colocatedWith,
Boolean offHeap) |
static void |
createConcurrentAsyncEventQueue(String asyncChannelId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
String diskStoreName,
boolean isDiskSynchronous,
int dispatcherThreads,
com.gemstone.gemfire.cache.util.Gateway.OrderPolicy policy) |
static void |
createConcurrentSender(String dsName,
int remoteDsId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
com.gemstone.gemfire.cache.wan.GatewayEventFilter filter,
boolean isManulaStart,
int concurrencyLevel,
com.gemstone.gemfire.cache.util.Gateway.OrderPolicy policy) |
static void |
createCustomerOrderShipmentPartitionedRegion(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets,
Boolean offHeap) |
static int |
createEndPoint(String dsName) |
static Integer |
createFirstLocatorWithDSId(int dsId) |
static Integer |
createFirstPeerLocator(int dsId) |
static Integer |
createFirstRemoteLocator(int dsId,
int remoteLocPort) |
static Integer |
createFirstRemotePeerLocator(int dsId,
int remoteLocPort) |
static void |
createGatewayHub(String id,
Map<String,Integer> gateways)
Just creates the GatewayHub on the node.
|
static void |
createGatewayHub(String localDsName,
String remoteDsName,
Integer port) |
static void |
createLocator(int dsId,
int port,
Set<String> localLocatorsList,
Set<String> remoteLocatorsList) |
static void |
createManagementCache(Integer locPort) |
static void |
createNormalRegion(String regionName,
String senderIds) |
static void |
createPartitionedRegion_WithGatewayEnabled(String regionName,
Integer redundantCopies,
Integer totalNumBuckets,
Boolean offHeap) |
static void |
createPartitionedRegion(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets,
Boolean offHeap) |
static void |
createPartitionedRegionAccessorWithAsyncEventQueue(String regionName,
String asyncEventQueueId) |
static void |
createPartitionedRegionAsAccessor(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets) |
static void |
createPartitionedRegionWithAsyncEventQueue(String regionName,
String asyncEventQueueId,
Boolean offHeap) |
static void |
createPartitionedRegionWithSerialParallelSenderIds(String regionName,
String serialSenderIds,
String parallelSenderIds,
String colocatedWith,
Boolean offHeap) |
static void |
createPersistentPartitionedRegion(String regionName,
String senderIds,
Integer redundantCopies,
Integer totalNumBuckets,
Boolean offHeap) |
static void |
createPersistentPartitionedRegionWithAsyncEventQueue(String regionName,
String asyncEventQueueId,
Boolean offHeap) |
static void |
createPersistentReplicatedRegion(String regionName,
String senderIds,
Boolean offHeap) |
static void |
createPersistentReplicatedRegionWithAsyncEventQueue(String regionName,
String asyncQueueIds,
Boolean offHeap) |
static void |
createPRWithRedundantCopyWithAsyncEventQueue(String regionName,
String asyncEventQueueId,
Boolean offHeap)
Create PartitionedRegion with 1 redundant copy
|
static int |
createReceiver_PDX(int locPort) |
static int |
createReceiver(int locPort) |
static void |
createReceiver2(int locPort) |
static int |
createReceiverAfterCache(int locPort) |
static void |
createReceiverAndServer(int locPort) |
static int |
createReceiverInSecuredCache(int locPort) |
static void |
createReplicatedRegion_WithGatewayEnabled(String regionName,
String senderIds,
Boolean offHeap) |
static void |
createReplicatedRegion(String regionName,
String senderIds,
Boolean offHeap) |
static void |
createReplicatedRegion(String regionName,
String senderIds,
com.gemstone.gemfire.cache.Scope scope,
com.gemstone.gemfire.cache.DataPolicy policy,
Boolean offHeap) |
static void |
createReplicatedRegionWithAsyncEventQueue(String regionName,
String asyncQueueIds,
Boolean offHeap) |
static void |
createReplicatedRegionWithSenderAndAsyncEventQueue(String regionName,
String senderIds,
String asyncChannelId,
Boolean offHeap) |
static Integer |
createSecondLocator(int dsId,
int locatorPort) |
static Integer |
createSecondPeerLocator(int dsId,
int locatorPort) |
static Integer |
createSecondRemoteLocator(int dsId,
int localPort,
int remoteLocPort) |
static Integer |
createSecondRemotePeerLocator(int dsId,
int localPort,
int remoteLocPort) |
static void |
createSecuredCache(Properties authProps,
Object javaProps,
Integer locPort) |
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) |
static void |
createSenderForValidations(String dsName,
int remoteDsId,
boolean isParallel,
Integer alertThreshold,
boolean isConflation,
boolean isPersistent,
List<com.gemstone.gemfire.cache.wan.GatewayEventFilter> eventfilters,
List<com.gemstone.gemfire.cache.wan.GatewayTransportFilter> tranportFilters,
boolean isManulaStart,
boolean isDiskSync) |
static String |
createSenderWithDiskStore(String dsName,
int remoteDsId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
com.gemstone.gemfire.cache.wan.GatewayEventFilter filter,
String dsStore,
boolean isManualStart) |
static void |
createSenderWithListener(String dsName,
int remoteDsName,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
com.gemstone.gemfire.cache.wan.GatewayEventFilter filter,
boolean attachTwoListeners,
boolean isManulaStart) |
static void |
createSenderWithoutDiskStore(String dsName,
int remoteDsId,
boolean isParallel,
Integer maxMemory,
Integer batchSize,
boolean isConflation,
boolean isPersistent,
com.gemstone.gemfire.cache.wan.GatewayEventFilter filter,
boolean isManulaStart) |
static int |
createServer(int locPort) |
static void |
destroyRegion(String regionName) |
static void |
destroyRegionAfterMinRegionSize(String regionName,
int min) |
static void |
destroySender(String senderId) |
static void |
doDestroys(String regionName,
int keyNum) |
static void |
doHeavyPuts(String regionName,
int numPuts) |
static void |
doMultiThreadedPuts(String regionName,
int numPuts) |
static void |
doNextPuts(String regionName,
int start,
int numPuts) |
static void |
doPutAll(String regionName,
int numPuts,
int size) |
static void |
doPuts(String regionName,
int numPuts) |
static void |
doPutsAfter300(String regionName,
int numPuts) |
static void |
doPutsFrom(String regionName,
int from,
int numPuts) |
static void |
doPutsPDXSerializable(String regionName,
int numPuts) |
static void |
doPutsWithKeyAsString(String regionName,
int numPuts) |
static void |
doRandomUpdates(String regionName,
int numUpdates) |
static void |
doRebalance()
Do a rebalance and verify balance was improved.
|
static void |
doTxPuts(String regionName,
int numPuts) |
static void |
doUpdateOnSameKey(String regionName,
int key,
int numUpdates) |
static void |
doUpdates(String regionName,
int numUpdates) |
static Set<Integer> |
getAllPrimaryBucketsOnTheNode(String regionName) |
static int |
getAsyncEventListenerMapSize(String asyncEventQueueId) |
static int |
getAsyncEventQueueSize(String asyncEventQueueId) |
static Map |
getCacheServers()
Returns a Map that contains the count for number of bridge server and number
of Receivers.
|
static Long |
getNumberOfEntriesInVM(String senderId) |
static Long |
getNumberOfEntriesOverflownToDisk(String senderId) |
static Boolean |
getPrimaryStatus() |
static Integer |
getQueueContentSize(String senderId) |
static String |
getRegionFullPath(String regionName) |
static Integer |
getRegionSize(String regionName) |
static List<Integer> |
getSenderStats(String senderId,
int expectedQueueSize) |
static Map |
getSenderToReceiverConnectionInfo(String senderId) |
com.gemstone.gemfire.distributed.internal.InternalDistributedSystem |
getSystem(Properties props)
Returns this VM's connection to the distributed system.
|
boolean |
isOffHeap()
Returns true if the test should create off-heap regions.
|
static Boolean |
killAsyncEventQueue(String asyncQueueId) |
static void |
killSender() |
static Boolean |
killSender(String senderId) |
static void |
localDestroyRegion(String regionName) |
static void |
pauseAsyncEventQueue(String asyncChannelId) |
static void |
pauseAsyncEventQueueAndWaitForDispatcherToPause(String asyncChannelId) |
static void |
pauseGateway(String localDsName) |
static void |
pauseSender(String senderId) |
static void |
pauseSenderAndWaitForDispatcherToPause(String senderId) |
static void |
pauseWaitCriteria(long millisec) |
static void |
printEventListenerMap() |
static void |
putcolocatedPartitionedRegion(int numPuts) |
static Map |
putCustomerPartitionedRegion(int numPuts) |
static void |
putGivenKeyValue(String regionName,
Map keyValues) |
static Map |
putOrderPartitionedRegion(int numPuts) |
static Map |
putOrderPartitionedRegionUsingCustId(int numPuts) |
static Map |
putShipmentPartitionedRegion(int numPuts) |
static Map |
putShipmentPartitionedRegionUsingCustId(int numPuts) |
static void |
removeSenderFromTheRegion(String senderId,
String regionName) |
static void |
resumeAsyncEventQueue(String asyncQueueId) |
static void |
resumeSender(String senderId) |
static void |
setRemoveFromQueueOnException(String senderId,
boolean removeFromQueue) |
void |
setUp()
Sets up the test (noop).
|
static void |
shutdownLocator() |
static void |
startAsyncEventQueue(String senderId) |
static void |
startGatewayHub(String gatewayHubId) |
static void |
startSender(String senderId) |
static void |
stopSender(String senderId) |
void |
tearDown2()
Tears down the test.
|
static void |
unsetRemoveFromQueueOnException(String senderId) |
static Map |
updateCustomerPartitionedRegion(int numPuts) |
static Map |
updateOrderPartitionedRegion(int numPuts) |
static Map |
updateOrderPartitionedRegionUsingCustId(int numPuts) |
static Map |
updateShipmentPartitionedRegion(int numPuts) |
static Map |
updateShipmentPartitionedRegionUsingCustId(int numPuts) |
static void |
validateAsyncEventListener(String asyncQueueId,
int expectedSize) |
static void |
validateAsyncEventQueueAttributes(String asyncChannelId,
int maxQueueMemory,
int batchSize,
int batchTimeInterval,
boolean isPersistent,
String diskStoreName,
boolean isDiskSynchronous,
boolean batchConflationEnabled)
Validate whether all the attributes set on AsyncEventQueueFactory are set
on the sender underneath the AsyncEventQueue.
|
static void |
validateConcurrentAsyncEventQueueAttributes(String asyncChannelId,
int maxQueueMemory,
int batchSize,
int batchTimeInterval,
boolean isPersistent,
String diskStoreName,
boolean isDiskSynchronous,
boolean batchConflationEnabled,
int dispatcherThreads,
com.gemstone.gemfire.cache.util.Gateway.OrderPolicy policy)
Validate whether all the attributes set on AsyncEventQueueFactory are set
on the sender underneath the AsyncEventQueue.
|
static void |
validateCustomAsyncEventListener(String asyncQueueId,
int expectedSize) |
static void |
validateParallelSenderQueueAllBucketsDrained(String senderId) |
static void |
validateParallelSenderQueueBucketSize(String senderId,
int bucketSize) |
static void |
validateQueueClosedForConcurrentSerialGatewaySender(String senderId) |
static void |
validateQueueContents(String senderId,
int regionSize) |
static void |
validateQueueContentsForConcurrentSerialGatewaySender(String senderId,
int regionSize) |
static void |
validateRegionContents(String regionName,
Map keyValues) |
static void |
validateRegionContentsForPR(String regionName,
int regionSize) |
static void |
validateRegionSize_PDX(String regionName,
int regionSize) |
static void |
validateRegionSize(String regionName,
int regionSize) |
static void |
validateRegionSizeRemainsSame(String regionName,
int regionSizeLimit)
This method is specifically written for pause and stop operations.
|
static int |
verifyAndGetEventsDispatchedByConcurrentDispatchers(String senderId) |
static void |
verifyAsyncEventListenerForPossibleDuplicates(String asyncEventQueueId,
Set<Integer> bucketIds,
int batchSize) |
static void |
verifyPrimaryStatus(Boolean isPrimary) |
static void |
verifyQueueSize(String senderId,
int size) |
static void |
verifyRegionQueueNotEmpty(String senderId) |
static void |
verifyRegionQueueNotEmptyForConcurrentSender(String senderId) |
static void |
verifySenderDestroyed(String senderId,
boolean isParallel) |
static void |
verifySenderPausedState(String senderId)
Test methods for sender operations
|
static void |
verifySenderResumedState(String senderId) |
static void |
verifySenderRunningState(String senderId) |
static void |
verifySenderStoppedState(String senderId) |
static void |
waitForAsyncEventQueueSize(String asyncQueueId,
int numQueueEntries)
This method verifies the queue size of a ParallelGatewaySender.
|
static void |
waitForAsyncQueueToGetEmpty(String asyncQueueId) |
static void |
waitForSenderRunningState(String senderId) |
static void |
waitForSenderToBecomePrimary(String senderId) |
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, 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.Region region
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion customerRegion
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion orderRegion
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion shipmentRegion
protected static final String customerRegionName
protected static final String orderRegionName
protected static final String shipmentRegionName
protected static VM vm0
protected static VM vm1
protected static VM vm2
protected static VM vm3
protected static VM vm4
protected static VM vm5
protected static VM vm6
protected static VM vm7
protected static QueueListener listener1
protected static QueueListener listener2
protected static List<QueueListener> gatewayListeners
protected static com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener eventListener1
protected static com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener eventListener2
protected static com.gemstone.gemfire.cache.wan.GatewayEventFilter eventFilter
protected static boolean destroyFlag
public WANTestBase(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void createLocator(int dsId,
int port,
Set<String> localLocatorsList,
Set<String> remoteLocatorsList)
public static Integer createFirstLocatorWithDSId(int dsId)
public static Integer createFirstPeerLocator(int dsId)
public static Integer createSecondLocator(int dsId, int locatorPort)
public static Integer createSecondPeerLocator(int dsId, int locatorPort)
public static Integer createFirstRemoteLocator(int dsId, int remoteLocPort)
public static void bringBackLocatorOnOldPort(int dsId,
int remoteLocPort,
int oldPort)
public static Integer createFirstRemotePeerLocator(int dsId, int remoteLocPort)
public static Integer createSecondRemoteLocator(int dsId, int localPort, int remoteLocPort)
public static Integer createSecondRemotePeerLocator(int dsId, int localPort, int remoteLocPort)
public static void createReplicatedRegion(String regionName, String senderIds, Boolean offHeap)
public static void createPersistentReplicatedRegion(String regionName, String senderIds, Boolean offHeap)
public static void createReplicatedRegion_WithGatewayEnabled(String regionName, String senderIds, Boolean offHeap)
public static void createReplicatedRegionWithAsyncEventQueue(String regionName, String asyncQueueIds, Boolean offHeap)
public static void createPersistentReplicatedRegionWithAsyncEventQueue(String regionName, String asyncQueueIds, Boolean offHeap)
public static void createReplicatedRegionWithSenderAndAsyncEventQueue(String regionName, String senderIds, String asyncChannelId, Boolean offHeap)
public static void createReplicatedRegion(String regionName, String senderIds, com.gemstone.gemfire.cache.Scope scope, com.gemstone.gemfire.cache.DataPolicy policy, Boolean offHeap)
public static void createAsyncEventQueue(String asyncChannelId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, String diskStoreName, boolean isDiskSynchronous)
public static void createAsyncEventQueueWithListener2(String asyncChannelId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isPersistent, String diskStoreName)
public static void createAsyncEventQueueWithCustomListener(String asyncChannelId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, String diskStoreName, boolean isDiskSynchronous)
public static void createConcurrentAsyncEventQueue(String asyncChannelId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, String diskStoreName, boolean isDiskSynchronous, int dispatcherThreads, com.gemstone.gemfire.cache.util.Gateway.OrderPolicy policy)
public static String createAsyncEventQueueWithDiskStore(String asyncChannelId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isPersistent, String diskStoreName)
public static void pauseAsyncEventQueue(String asyncChannelId)
public static void pauseAsyncEventQueueAndWaitForDispatcherToPause(String asyncChannelId)
public static void resumeAsyncEventQueue(String asyncQueueId)
public static void checkAsyncEventQueueSize(String asyncQueueId, int numQueueEntries)
public static void waitForAsyncEventQueueSize(String asyncQueueId, int numQueueEntries) throws Exception
asyncQueueId - Async Queue IDnumQueueEntries - expected number of Queue entriesExceptionpublic static void createPartitionedRegion(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets, Boolean offHeap)
public static void createColocatedPartitionedRegion(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets, String colocatedWith, Boolean offHeap)
public static void createPartitionedRegionWithAsyncEventQueue(String regionName, String asyncEventQueueId, Boolean offHeap)
public static void createColocatedPartitionedRegionWithAsyncEventQueue(String regionName, String asyncEventQueueId, Integer totalNumBuckets, String colocatedWith, Boolean offHeap)
public static void createPersistentPartitionedRegionWithAsyncEventQueue(String regionName, String asyncEventQueueId, Boolean offHeap)
public static void createPRWithRedundantCopyWithAsyncEventQueue(String regionName, String asyncEventQueueId, Boolean offHeap)
public static void createPartitionedRegionAccessorWithAsyncEventQueue(String regionName, String asyncEventQueueId)
public static void createPartitionedRegion_WithGatewayEnabled(String regionName, Integer redundantCopies, Integer totalNumBuckets, Boolean offHeap)
public static void createPartitionedRegionAsAccessor(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets)
public static void createPartitionedRegionWithSerialParallelSenderIds(String regionName, String serialSenderIds, String parallelSenderIds, String colocatedWith, Boolean offHeap)
public static void createPersistentPartitionedRegion(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets, Boolean offHeap)
public static void createCustomerOrderShipmentPartitionedRegion(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets, Boolean offHeap)
public static void createColocatedPartitionedRegions(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets, Boolean offHeap)
public static void createColocatedPartitionedRegions2(String regionName, String senderIds, Integer redundantCopies, Integer totalNumBuckets, Boolean offHeap)
public static void createCache(Integer locPort)
public static void createManagementCache(Integer locPort)
protected static void createCache(boolean management,
Integer locPort)
public static void createSecuredCache(Properties authProps, Object javaProps, Integer locPort)
public static void createCache_PDX(Integer locPort)
public static void createCacheWithoutLocator(Integer mCastPort)
public static Integer createCacheServer()
public static Map getCacheServers()
public static void startSender(String senderId)
public static void startAsyncEventQueue(String senderId)
public static Map getSenderToReceiverConnectionInfo(String senderId)
public static void startGatewayHub(String gatewayHubId)
public static void checkQueueStats(String senderId, int queueSize, int eventsReceived, int eventsQueued, int eventsDistributed)
public static void checkAsyncEventQueueStats(String queueId, int queueSize, int eventsReceived, int eventsQueued, int eventsDistributed)
public static void checkGatewayReceiverStats(int processBatches,
int eventsReceived,
int creates)
public static void checkMinimumGatewayReceiverStats(int processBatches,
int eventsReceived)
public static void checkExcepitonStats(int exceptionsOccured)
public static void checkGatewayReceiverStatsHA(int processBatches,
int eventsReceived,
int creates)
public static void checkEventFilteredStats(String senderId, int eventsFiltered)
public static void checkConflatedStats(String senderId, int eventsConflated)
public static void checkAsyncEventQueueConflatedStats(String asyncEventQueueId, int eventsConflated)
public static void checkStats_Failover(String senderId, int eventsReceived)
public static void checkAsyncEventQueueStats_Failover(String asyncEventQueueId, int eventsReceived)
public static void checkBatchStats(String senderId, int batches)
public static void checkAsyncEventQueueBatchStats(String asyncQueueId, int batches)
public static void checkBatchStats(String senderId, boolean batchesDistributed, boolean bathcesRedistributed)
public static void checkUnProcessedStats(String senderId, int events)
public static void checkAsyncEventQueueUnprocessedStats(String asyncQueueId, int events)
public static void setRemoveFromQueueOnException(String senderId, boolean removeFromQueue)
public static void unsetRemoveFromQueueOnException(String senderId)
public static void waitForSenderRunningState(String senderId)
public static void waitForSenderToBecomePrimary(String senderId)
public static HashMap checkQueue()
public static void checkQueueOnSecondary(Map primaryUpdatesMap)
public static HashMap checkQueue2()
public static void addListenerOnBucketRegion(String regionName, int numBuckets)
public static void addListenerOnQueueBucketRegion(String senderId, int numBuckets)
public static void addListenerOnGateway(String gatewayHubId)
public static void addQueueListener(String senderId, boolean isParallel)
public static void addSecondQueueListener(String senderId, boolean isParallel)
public static void addListenerOnRegion(String regionName)
public static void pauseSender(String senderId)
public static void pauseSenderAndWaitForDispatcherToPause(String senderId)
public static void resumeSender(String senderId)
public static void stopSender(String senderId)
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 createSenderWithoutDiskStore(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 createConcurrentSender(String dsName, int remoteDsId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, com.gemstone.gemfire.cache.wan.GatewayEventFilter filter, boolean isManulaStart, int concurrencyLevel, com.gemstone.gemfire.cache.util.Gateway.OrderPolicy policy)
public static void createSenderForValidations(String dsName, int remoteDsId, boolean isParallel, Integer alertThreshold, boolean isConflation, boolean isPersistent, List<com.gemstone.gemfire.cache.wan.GatewayEventFilter> eventfilters, List<com.gemstone.gemfire.cache.wan.GatewayTransportFilter> tranportFilters, boolean isManulaStart, boolean isDiskSync)
public static String createSenderWithDiskStore(String dsName, int remoteDsId, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, com.gemstone.gemfire.cache.wan.GatewayEventFilter filter, String dsStore, boolean isManualStart)
public static void createSenderWithListener(String dsName, int remoteDsName, boolean isParallel, Integer maxMemory, Integer batchSize, boolean isConflation, boolean isPersistent, com.gemstone.gemfire.cache.wan.GatewayEventFilter filter, boolean attachTwoListeners, boolean isManulaStart)
public static void createGatewayHub(String localDsName, String remoteDsName, Integer port)
public static void createGatewayHub(String id, Map<String,Integer> gateways)
id - Id of the GatewayHubgateways - Configuration of gateways in this GatewayHubpublic static void pauseGateway(String localDsName)
public static void pauseWaitCriteria(long millisec)
public static int createReceiver(int locPort)
public static int createReceiverAfterCache(int locPort)
public static void createReceiverAndServer(int locPort)
public static int createReceiverInSecuredCache(int locPort)
public static int createServer(int locPort)
public static void createClientWithLocator(int port0,
String host,
String regionName)
public static int createReceiver_PDX(int locPort)
public static void createReceiver2(int locPort)
public static int createEndPoint(String dsName)
public static void doRebalance()
public static void doPuts(String regionName, int numPuts)
public static void doPutsAfter300(String regionName, int numPuts)
public static void doPutsFrom(String regionName, int from, int numPuts)
public static void doDestroys(String regionName, int keyNum)
public static void doPutAll(String regionName, int numPuts, int size)
public static void doPutsWithKeyAsString(String regionName, int numPuts)
public static void destroyRegion(String regionName)
public static void destroyRegionAfterMinRegionSize(String regionName, int min)
public static void localDestroyRegion(String regionName)
public static Map putCustomerPartitionedRegion(int numPuts)
public static Map updateCustomerPartitionedRegion(int numPuts)
public static Map putOrderPartitionedRegion(int numPuts)
public static Map putOrderPartitionedRegionUsingCustId(int numPuts)
public static Map updateOrderPartitionedRegion(int numPuts)
public static Map updateOrderPartitionedRegionUsingCustId(int numPuts)
public static Map putShipmentPartitionedRegion(int numPuts)
public static void putcolocatedPartitionedRegion(int numPuts)
public static Map putShipmentPartitionedRegionUsingCustId(int numPuts)
public static void doPutsPDXSerializable(String regionName, int numPuts)
public static void doTxPuts(String regionName, int numPuts)
public static Map updateShipmentPartitionedRegion(int numPuts)
public static Map updateShipmentPartitionedRegionUsingCustId(int numPuts)
public static void doNextPuts(String regionName, int start, int numPuts)
public static void checkQueueSize(String senderId, int numQueueEntries)
public static void checkPRQLocalSize(String senderId, int numQueueEntries)
senderId - Id of the ParallelGatewaySendernumQueueEntries - Expected number of ParallelGatewaySenderQueue entriespublic static void doUpdates(String regionName, int numUpdates)
public static void doUpdateOnSameKey(String regionName, int key, int numUpdates)
public static void doRandomUpdates(String regionName, int numUpdates)
public static void doMultiThreadedPuts(String regionName, int numPuts)
public static void verifyAsyncEventListenerForPossibleDuplicates(String asyncEventQueueId, Set<Integer> bucketIds, int batchSize)
public static void validateRegionSize(String regionName, int regionSize)
public static void validateAsyncEventQueueAttributes(String asyncChannelId, int maxQueueMemory, int batchSize, int batchTimeInterval, boolean isPersistent, String diskStoreName, boolean isDiskSynchronous, boolean batchConflationEnabled)
public static void validateConcurrentAsyncEventQueueAttributes(String asyncChannelId, int maxQueueMemory, int batchSize, int batchTimeInterval, boolean isPersistent, String diskStoreName, boolean isDiskSynchronous, boolean batchConflationEnabled, int dispatcherThreads, com.gemstone.gemfire.cache.util.Gateway.OrderPolicy policy)
public static void validateAsyncEventListener(String asyncQueueId, int expectedSize)
public static void validateCustomAsyncEventListener(String asyncQueueId, int expectedSize)
public static void waitForAsyncQueueToGetEmpty(String asyncQueueId)
public static int getAsyncEventListenerMapSize(String asyncEventQueueId)
public static int getAsyncEventQueueSize(String asyncEventQueueId)
public static void validateRegionSize_PDX(String regionName, int regionSize)
public static void validateRegionSizeRemainsSame(String regionName, int regionSizeLimit)
regionName - regionSizeLimit - public static void CheckContent(String regionName, int regionSize)
public static void validateRegionContentsForPR(String regionName, int regionSize)
public static void verifyPrimaryStatus(Boolean isPrimary)
public static Boolean getPrimaryStatus()
public static Set<Integer> getAllPrimaryBucketsOnTheNode(String regionName)
public static void doHeavyPuts(String regionName, int numPuts)
public static void addListenerAndKillPrimary()
public static void addCacheListenerAndDestroyRegion(String regionName)
public static void addCacheListenerAndCloseCache(String regionName)
public static void killSender()
public static Long checkAllSiteMetaDataFor3Sites(Map<Integer,Set<String>> dsVsPort)
public static void checkLocatorsinSender(String senderId, InetSocketAddress locatorToWaitFor) throws InterruptedException
InterruptedExceptionpublic static void validateQueueContents(String senderId, int regionSize)
public static void validateQueueClosedForConcurrentSerialGatewaySender(String senderId)
public static void validateQueueContentsForConcurrentSerialGatewaySender(String senderId, int regionSize)
public static void validateParallelSenderQueueBucketSize(String senderId, int bucketSize)
public static void validateParallelSenderQueueAllBucketsDrained(String senderId)
public static int verifyAndGetEventsDispatchedByConcurrentDispatchers(String senderId)
public static Long getNumberOfEntriesOverflownToDisk(String senderId)
public static void verifyQueueSize(String senderId, int size)
public static void verifyRegionQueueNotEmpty(String senderId)
public static void verifyRegionQueueNotEmptyForConcurrentSender(String senderId)
public static void verifySenderPausedState(String senderId)
senderId - public static void verifySenderResumedState(String senderId)
public static void verifySenderStoppedState(String senderId)
public static void verifySenderRunningState(String senderId)
public static void removeSenderFromTheRegion(String senderId, String regionName)
public static void destroySender(String senderId)
public static void verifySenderDestroyed(String senderId, boolean isParallel)
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
public static void shutdownLocator()
public static void printEventListenerMap()
public com.gemstone.gemfire.distributed.internal.InternalDistributedSystem getSystem(Properties props)
DistributedTestCaseProperties. Note that this method uses hydra's
configuration to determine the location of log files, etc.getSystem in class DistributedTestCaseDistributedConnectionMgr.connect(java.lang.String)public boolean isOffHeap()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.