public class NetworkPartitionTest extends OperationsClient
SplitBrainPrms,
SplitBrainBB| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
forcedDisconnect |
protected static NetworkPartitionTest |
testInstance |
createCallbackPrefix, destroyCallbackPrefix, distLockService, ENTRY_ADD_OPERATION, ENTRY_DESTROY_OPERATION, ENTRY_GET_NEW_OPERATION, ENTRY_GET_OPERATION, ENTRY_INVALIDATE_OPERATION, ENTRY_LOCAL_DESTROY_OPERATION, ENTRY_LOCAL_INVALIDATE_OPERATION, ENTRY_PUTALL_OPERATION, ENTRY_UPDATE_OPERATION, getCallbackPrefix, invalidateCallbackPrefix, LOCK_NAME, LOCK_SERVICE_NAME, lockOperations, lowerThreshold, minTaskGranularityMS, minTaskGranularitySec, numOpsPerTask, PUT_IF_ABSENT_OPERATION, randomValues, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, REMOVE_OPERATION, REPLACE_OPERATION, updateCallbackPrefix, upperThreshold, useTransactions, VmIDStr| Constructor and Description |
|---|
NetworkPartitionTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCacheAndDisconnectFromDS()
Close the cache (and disconnect from the DS)
This should prevent the ShutdownException: no down protocol available!
during Shutdown (if locators (client vms) are shut down prior to
application client vms
|
protected void |
createGatewayHub() |
static void |
createLocatorTask()
Creates a (disconnected) locator and does not throw an exception if it already exists.
|
protected void |
doEntryOperations() |
static String |
getXmlFileName()
Return the xml file name for the vm with the given ID.
|
static void |
HydraCloseTask_checkForRegionDestroyedForcedDisconnects()
CLOSETASK to check static forcedDisconect (meaning that we processed
a RegionDestroyedException.FORCED_DISCONNECT in the listener.
|
static void |
HydraEndTask_verifyLosingPartition()
ENDTASK to verify that all clients in the losing partition posted to
the forcedDisconnectList on the blackboard
Also verifies proper receipt of SystemMembershipListener memberCrashed events.
|
static void |
HydraEndTask_verifyReconnect()
ENDTASK to verify that all clients in the losing partition posted to
the reconnected bb
|
static void |
HydraEndTask_waitForReconnect()
ENDTASK to wait for distributed system to reconnect
|
static void |
HydraTask_addAdminFailureListener()
Task to add a MembershipTestHook to listen for membership failures
|
static void |
HydraTask_addExpectForcedDisconnectClient()
If appropriate, adds this client to the set that are expected to
receive a forced-disconnect.
|
static void |
HydraTask_connectToDS() |
static void |
HydraTask_createGatewaySenderIds()
Creates GatewaySender ids based on the
ConfigPrms.gatewaySenderConfig. |
static void |
HydraTask_createSnapshot()
Hydra task to create a blackboard snapshot of the region contents
|
static void |
HydraTask_doEntryOperations()
Performs puts/gets on entries in TestRegion
Allows Shutdown and CacheClosedException if the result of forcedDisconnect
|
static void |
HydraTask_initialize()
Create the cache and Region.
|
static void |
HydraTask_initializeBridgeClient() |
static void |
HydraTask_initializeBridgeServer() |
static void |
HydraTask_initializeFromXML()
Create the cache and Region.
|
static void |
HydraTask_initWanComponents()
Creates start new wan components i.e senders based on
ConfigPrms.gatewaySenderConfig
and receivers based on ConfigPrms.gatewayReceiverConfig. |
static void |
HydraTask_loadRegion()
loadRegion
|
static void |
HydraTask_verifyAdminFailures()
Task to verify that the correct number of admins got forced disconnects
|
static void |
HydraTask_verifyRegion()
Task to verify that the region recovered data from disk (it's size is not 0)
|
protected void |
initialize() |
protected void |
initializeBridgeClient() |
protected void |
initializeBridgeServer() |
protected void |
initializeFromXML() |
protected void |
initializePrms() |
protected void |
loadRegion()
loads the test region with SplitBrainBB.maxKeys entries.
|
protected void |
reconnected()
call this when the cache has been reconnected after a forced-disconnect
|
protected boolean |
requiresPersistence(RegionDescription rd) |
static void |
setForcedDisconnect()
API for SBListener to set the forcedDisconnect flag to indicate that
a RegionDestroyedEvent (FORCED_DISCONNECT) has been processed in this VM.
|
static void |
startAndConnectLocatorTask()
Connects a locator to its distributed system and does not throw an exception if already connected.
|
static void |
startGatewayHubTask()
Starts a gateway hub in a VM that previously created one, after creating
gateways
|
protected boolean |
waitForReconnect() |
addEntry, destroyEntry, doEntryOperations, getExistingKey, getExistingKeys, getKey, getNewKey, getNewKey, getOperation, getRecentKey, getUpdateObject, getValueForKey, initializeOperationsClient, invalidateEntry, putAll, putIfAbsent, remove, remove, replace, replace, stopLocatorTask, updateEntryprotected static boolean forcedDisconnect
protected static NetworkPartitionTest testInstance
public static void HydraTask_initializeBridgeServer()
protected void initializeBridgeServer()
public static String getXmlFileName()
public static void HydraTask_initializeBridgeClient()
protected void initializeBridgeClient()
public static void HydraTask_connectToDS()
public static void HydraTask_initialize()
public static void HydraTask_initializeFromXML()
public static void HydraTask_addExpectForcedDisconnectClient()
protected void initialize()
protected void initializeFromXML()
protected void reconnected()
public static void HydraTask_createSnapshot()
protected boolean requiresPersistence(RegionDescription rd)
protected void createGatewayHub()
protected void initializePrms()
public static void startGatewayHubTask()
public static void HydraTask_createGatewaySenderIds()
ConfigPrms.gatewaySenderConfig.public static void HydraTask_initWanComponents()
ConfigPrms.gatewaySenderConfig
and receivers based on ConfigPrms.gatewayReceiverConfig.public static void HydraTask_loadRegion()
protected void loadRegion()
public static void HydraTask_doEntryOperations()
protected void doEntryOperations()
protected boolean waitForReconnect()
public static void closeCacheAndDisconnectFromDS()
public static void setForcedDisconnect()
public static void HydraCloseTask_checkForRegionDestroyedForcedDisconnects()
public static void HydraEndTask_verifyLosingPartition()
public static void HydraTask_verifyRegion()
public static void HydraTask_addAdminFailureListener()
public static void HydraTask_verifyAdminFailures()
public static void HydraEndTask_waitForReconnect()
public static void HydraEndTask_verifyReconnect()
public static void createLocatorTask()
public static void startAndConnectLocatorTask()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.