public class EventBB extends Blackboard
EventTest do. For instance, it has counters
that are incremented when region operations like put
and invalidate are performed. It also keeps track of| Modifier and Type | Field and Description |
|---|---|
static int |
actualRegionCreateEvents |
static int |
actualRegionDepartedEvents |
static EventBB |
bbInstance |
static int |
CONTINUE_MONITOR |
static int |
EXECUTION_NUMBER |
static int |
EXPECTED_REMOTE_REGION_CREATE |
static int |
EXPECTED_REMOTE_REGION_DEPARTED |
static int |
MAX_FAULT_IN_REGIONS_MILLIS |
static int |
MAX_GET_CURR_REGION_NAMES_MILLIS |
static int |
MAX_NUM_GET_CURR_REGION_NAMES |
static int |
MAX_NUM_WRITE_CURR_REGION_NAMES |
static int |
MAX_WRITE_CURR_REGION_NAMES_MILLIS |
static int |
NUM_CLEAR |
static int |
NUM_CLOSE |
static int |
NUM_CREATE |
static int |
NUM_DESTROY |
static int |
NUM_INVALIDATE |
static int |
NUM_LOCAL_DESTROY |
static int |
NUM_LOCAL_INVALIDATE |
static int |
NUM_LOCAL_REGION_DESTROY |
static int |
NUM_LOCAL_REGION_INVALIDATE |
static int |
NUM_REGION_CREATE |
static int |
NUM_REGION_DESTROY |
static int |
NUM_REGION_INVALIDATE |
static int |
NUM_UPDATE |
static int |
numInRound |
static int |
REGION_UPDATE_COMPLETE |
static int |
REQUEST_REGION_UPDATE |
counterNames, GemFire, RMI| Constructor and Description |
|---|
EventBB()
Zero-arg constructor for remote method invocations.
|
EventBB(String name,
String type)
Creates a sample blackboard using the specified name and transport type.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
add(String counterName,
int counter,
int amountToAdd)
Adds a given amount to the value of a given counter
|
static void |
clearRegionOpInfo()
Clear the region operation information from the BB
|
static void |
clearRemoteRegionCounters()
Clear the remote region (actual) counters for serialRoundRobin tests
|
static EventBB |
getBB()
Get the EventBB
|
static int |
getRegionOp()
Get the Region Operation from the BB (used in proxy serial region event tests)
|
static String |
getTargetRegion()
Get the targeted region from the BB (used in proxy serial region event tests)
|
static void |
HydraTask_initialize()
Initialize the EventBB
This saves caching attributes in the blackboard that must only be
read once per test run.
|
static long |
incrementCounter(String counterName,
int counter)
Increments the counter with the given name
|
static boolean |
isRRLeader()
Using the hydra threadGroupName (RRLeader), determines if this client is the
first in a RoundRobin (hydra client scheduling prm).
|
static boolean |
isSerialExecution() |
static boolean |
isSerialRR()
Utility method to determine if running in serial round robin execution mode
|
static void |
putRegionOpInfo(int operation,
String regionName)
Put the region operation information (operation (create, destroy or invalidate) and
target region) into the BB
|
static void |
zero(String counterName,
int counter)
Sets the value count with the given name to zero.
|
createSharedCounters, createSharedLock, createSharedMap, getCounterNames, getSharedCounter, getSharedCounters, getSharedLock, getSharedMap, print, printSharedCounters, printSharedMappublic static int EXECUTION_NUMBER
public static int NUM_CREATE
public static int NUM_UPDATE
public static int NUM_DESTROY
public static int NUM_INVALIDATE
public static int NUM_REGION_DESTROY
public static int NUM_REGION_INVALIDATE
public static int NUM_REGION_CREATE
public static int NUM_LOCAL_DESTROY
public static int NUM_LOCAL_INVALIDATE
public static int NUM_LOCAL_REGION_DESTROY
public static int NUM_LOCAL_REGION_INVALIDATE
public static int NUM_CLOSE
public static int NUM_CLEAR
public static int numInRound
public static int EXPECTED_REMOTE_REGION_CREATE
public static int EXPECTED_REMOTE_REGION_DEPARTED
public static int actualRegionCreateEvents
public static int actualRegionDepartedEvents
public static int REQUEST_REGION_UPDATE
public static int REGION_UPDATE_COMPLETE
public static int CONTINUE_MONITOR
public static int MAX_GET_CURR_REGION_NAMES_MILLIS
public static int MAX_NUM_GET_CURR_REGION_NAMES
public static int MAX_FAULT_IN_REGIONS_MILLIS
public static int MAX_WRITE_CURR_REGION_NAMES_MILLIS
public static int MAX_NUM_WRITE_CURR_REGION_NAMES
public static EventBB bbInstance
public static EventBB getBB()
public static void HydraTask_initialize()
public static boolean isSerialExecution()
public static void zero(String counterName, int counter)
public static long incrementCounter(String counterName, int counter)
public static long add(String counterName, int counter, int amountToAdd)
public static boolean isSerialRR()
hydra.Prms.serialExecution,
hydra.Prms.roundRobinpublic static boolean isRRLeader()
hydra.Prms.roundRobinpublic static void putRegionOpInfo(int operation,
String regionName)
operation - - region operation (create, destroy, invalidate)region - - target of the region operationpublic static void clearRegionOpInfo()
public static int getRegionOp()
public static String getTargetRegion()
public static void clearRemoteRegionCounters()
EventBB.EXPECTED_REGION_CREATE,
EventBB.NUM_REMOTE_REGION_DEPARTEDCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.