public class NBSTest extends InterestPolicyTest
| Modifier and Type | Field and Description |
|---|---|
static String |
REG_INT_ALLKEYS |
static String |
REG_INT_LIST |
static String |
REG_INT_REGEX |
static String |
REG_INT_SINGLE_KEY |
static String |
VM_REG_INTEREST |
dynamicKeys, dynamicKeysValues, dynamicNone, dynamicPartialKeys, dynamicPartialKeysValues, dynamicPartialNone, intervals, keyList, NUM_EXTRA_KEYS, partial_numDestroyKeys, partial_numInvalidateKeys, partial_numUpdateKeys, partialKeyList, policy, REGION_NAME, static_ops_RI_keys, static_ops_RI_keysValues, static_ops_RI_none, static_RI_noops_keys, static_RI_noops_keysValues, static_RI_noops_none, static_RI_ops_keys, static_RI_ops_keysValues, static_RI_ops_none, staticPartial_ops_RI_keys, staticPartial_ops_RI_keysValues, staticPartial_ops_RI_none, staticPartial_RI_noops_keys, staticPartial_RI_noops_keysValues, staticPartial_RI_noops_none, staticPartial_RI_ops_keys, staticPartial_RI_ops_keysValues, staticPartial_RI_ops_none, subscriptionADD_NEW_KEY, aRegion, createRegionDurationMS, DESTROY, FIRST_OP, GET, giiDurationMS, INVALIDATE, keyIntervals, LAST_OP, LOCAL_DESTROY, LOCAL_INVALIDATE, LOG_INTERVAL_MILLIS, numNewKeys, operations, PUTALL_NEW_KEY, randomValues, sc, sleepMSAfterOps, supportsConcurrentMap, testInstance, totalNumKeys, UPDATE_EXISTING_KEY| Constructor and Description |
|---|
NBSTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
doOps(BitSet availableOps)
Do operations on the REGION_NAME's keys using keyIntervals to specify
which keys get which operations.
|
static void |
HydraTask_doOps()
Hydra task to execution ops, then stop scheduling.
|
static void |
HydraTask_initialize()
Initialize the single instance of this test class but not a region.
|
static void |
HydraTask_recycleVm()
Recycle the servers
|
static void |
HydraTask_registerInterestAllKeys(boolean receiveValues)
Task to register interest with an interest policy with ALL_KEYS.
|
static void |
HydraTask_registerInterestList(boolean receiveValues)
Task to register interest with an interest policy with a list.
|
static void |
HydraTask_registerInterestRegex(boolean receiveValues)
Task to register interest with an interest policy.
|
static void |
HydraTask_registerInterestSingle(boolean receiveValues)
Task to register interest with an interest policy with repeated calls with a
single key.
|
static void |
HydraTask_registerInterestWithFalse()
For clients to register interest to true with notify by subscription over ridden to false
|
static void |
HydraTask_registerInterestWithTrue()
For clients to register interest to true with notify by subscription over ridden to true
|
static void |
HydraTask_validateClientEventsForOffClients()
Validation task to verify the true overriden client's events received
|
static void |
HydraTask_validateClientEventsForOnClients()
Validation task to verify the false overriden client's events received
|
static void |
initBridgeServer()
Task to initialize bridge server
|
protected void |
readyForEvents()
durable clients must signal readiness for events.
|
static void |
registerInterest(int testCase,
boolean receiveValues) |
protected void |
registerInterest(Object keysOfInterest,
boolean receiveValues)
Use the given keys of interest, along with an interest policy to call
registerInterest, and then check the contents of the region.
|
protected void |
registerInterestRegex(boolean receiveValues)
Use a regular expression for keys of interest, along with an interest
policy to call registerInterest, and then check the
contents of the region.
|
protected void |
registerInterestSingle(boolean isPartial,
boolean receiveValues)
Repeatedly call registerInterest with a single key, along with
an interest policy.
|
static void |
StartTask_initialize() |
protected void |
validateClientEventsForOffClients() |
protected void |
validateClientEventsForOnClients() |
checkContainsKey, checkContainsValueForKey, getDynamicExpected, getRegex, HydraTask_loadRegion, HydraTask_nondurable_registerInterestAllKeys, HydraTask_nondurable_registerInterestList, HydraTask_nondurable_registerInterestPartialList, HydraTask_nondurable_registerInterestRegex, HydraTask_registerInterestAllKeys, HydraTask_registerInterestList, HydraTask_registerInterestPartialList, HydraTask_registerInterestRegex, HydraTask_registerInterestSingle_ops_RI, HydraTask_registerInterestSingle_RI_noops, HydraTask_registerInterestSingle_RI_ops, HydraTask_registerInterestSingle, HydraTask_unRegisterInterestAllKeys, HydraTask_unRegisterInterestList, HydraTask_unRegisterInterestPartialList, HydraTask_unRegisterInterestRegex, HydraTask_verifyPartialRegionContents_ops_RI, HydraTask_verifyPartialRegionContents_RI_noops, HydraTask_verifyPartialRegionContents_RI_ops, HydraTask_verifyPartialRegionContentsDynamic, HydraTask_verifyRegionContents_ops_RI, HydraTask_verifyRegionContents_RI_noops, HydraTask_verifyRegionContents_RI_ops, HydraTask_verifyRegionContents_UR, HydraTask_verifyRegionContentsDynamic, HydraTask_waitForSilence, initInstance, killClient, killClientWithCacheClose, killServer, nondurable_registerInterest, nondurable_registerInterestRegex, recycleClientWithCacheClose, registerInterest, registerInterestRegex, registerInterestSingle, renewSubscription, unRegisterInterest, unRegisterInterestRegex, validateEventCounters, verifyEntry, verifyRegionContents_UR, verifyRegionContentsaddNewKey, blockedGetRegion, checkContainsKey, checkContainsValueForKey, checkUpdatedValue, checkValue, createObject, createObject, destroy, doGetInitImage, doNewKeyGets, doOpsPlusPuts, get, getCacheLoader, getCacheWriter, getOp, getRegionKeySet, getValueToAdd, hasLocalGiiCompleted, HydraTask_blockedGetRegion, HydraTask_doCacheWriterTest, HydraTask_doGetInitImage, HydraTask_doGetInitImageWithoutMonitor, HydraTask_doNewKeyGets, HydraTask_doPutAllNewKey, HydraTask_initCache, HydraTask_loadRegionWithGets, HydraTask_verifyCacheWriterTest, HydraTask_verifyEventCounters, HydraTask_verifyGII, HydraTask_verifyNonBlocking, HydraTask_verifyRegionContents, initializeInstance, initializeRegion, initRegion, invalidate, isAnyGiiInProgress, isLocalGiiInProgress, isLocalGiiInProgress, loadRegion, loadRegionWithGets, localDestroy, localInvalidate, putAllNewKey, updateExistingKey, verifyCacheWriterTest, verifyEventCounters, verifyNonBlocking, verifyRegionContents, waitForAllGiiToComplete, waitForAnyGiiToBegin, waitForLocalGiiCompleted, waitForLocalGiiToBeginpublic static final String VM_REG_INTEREST
public static final String REG_INT_ALLKEYS
public static final String REG_INT_LIST
public static final String REG_INT_SINGLE_KEY
public static final String REG_INT_REGEX
public static void StartTask_initialize()
public static void HydraTask_initialize()
protected void readyForEvents()
public static void HydraTask_validateClientEventsForOnClients()
public static void HydraTask_validateClientEventsForOffClients()
public static void initBridgeServer()
public static void HydraTask_registerInterestWithTrue()
throws Exception
Exceptionpublic static void HydraTask_registerInterestWithFalse()
throws Exception
Exceptionpublic static void registerInterest(int testCase,
boolean receiveValues)
throws Exception
Exceptionpublic static void HydraTask_registerInterestSingle(boolean receiveValues)
throws Exception
Exceptionpublic static void HydraTask_registerInterestList(boolean receiveValues)
public static void HydraTask_registerInterestAllKeys(boolean receiveValues)
public static void HydraTask_registerInterestRegex(boolean receiveValues)
public static void HydraTask_doOps()
public void doOps(BitSet availableOps)
doOps in class InitImageTestavailableOps - - Bits which are true correspond to the operations
that should be executed.
Overrides getInitialImage.InitImageTest implementation so that we can
(temporarily) handle TransactionDataNodeDeparted Exceptions (without
affecting non-HA tests.public static void HydraTask_recycleVm()
protected void registerInterest(Object keysOfInterest, boolean receiveValues)
protected void registerInterestRegex(boolean receiveValues)
protected void registerInterestSingle(boolean isPartial,
boolean receiveValues)
throws Exception
isPartial - If true, we only registered a partial set of keys,
rather than all keys used by the test.
(Used only if verify is true)expected - The expected region contents if we should verify after
each registerInterest call, false otherwise.Exceptionprotected void validateClientEventsForOnClients()
protected void validateClientEventsForOffClients()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.