public class TxWriterCountersBB extends Blackboard
util#AbstractWriter.
Any subclass of AbstractWriter that wants to use AbstractWriter's
counter increment methods can use this blackboard for that purpose.
Note that the names of the blackboard counters defined here must be
the same names as defined in AbstractWriter.counterNames, GemFire, RMI| Constructor and Description |
|---|
TxWriterCountersBB()
Zero-arg constructor for remote method invocations.
|
TxWriterCountersBB(String name,
String type)
Creates a sample blackboard using the specified name and transport type.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCreateUpdate(long expectedIsDist,
long expectedIsNotDist,
long expectedIsExp,
long expectedIsNotExp,
long expectedIsRemote,
long expectedIsNotRemote)
Check the value of update/create combined.
|
void |
checkEventCounters(ArrayList expectedValues)
Check the value of all tx event counters.
|
void |
checkTxWriterCounters(long[] expectedValues)
Check the value of all tx event counters.
|
static TxWriterCountersBB |
getBB()
Get the EventCountersBB
|
static void |
incrementEntryTxEventCntrs(String eventName,
boolean isDistributed,
boolean isExpiration,
boolean isRemote,
boolean isLoad,
boolean isLocalLoad,
boolean isNetLoad,
boolean isNetSearch)
Increment the appropriate entry event counters.
|
void |
zeroAllCounters()
Zero all counters in this blackboard.
|
createSharedCounters, createSharedLock, createSharedMap, getCounterNames, getSharedCounter, getSharedCounters, getSharedLock, getSharedMap, print, printSharedCounters, printSharedMappublic static int numCreateTxEvents_isDist
public static int numCreateTxEvents_isNotDist
public static int numCreateTxEvents_isExp
public static int numCreateTxEvents_isNotExp
public static int numCreateTxEvents_isRemote
public static int numCreateTxEvents_isNotRemote
public static int numCreateTxEvents_isLoad
public static int numCreateTxEvents_isNotLoad
public static int numCreateTxEvents_isLocalLoad
public static int numCreateTxEvents_isNotLocalLoad
public static int numCreateTxEvents_isNetLoad
public static int numCreateTxEvents_isNotNetLoad
public static int numCreateTxEvents_isNetSearch
public static int numCreateTxEvents_isNotNetSearch
public static int numDestroyTxEvents_isDist
public static int numDestroyTxEvents_isNotDist
public static int numDestroyTxEvents_isExp
public static int numDestroyTxEvents_isNotExp
public static int numDestroyTxEvents_isRemote
public static int numDestroyTxEvents_isNotRemote
public static int numDestroyTxEvents_isLoad
public static int numDestroyTxEvents_isNotLoad
public static int numDestroyTxEvents_isLocalLoad
public static int numDestroyTxEvents_isNotLocalLoad
public static int numDestroyTxEvents_isNetLoad
public static int numDestroyTxEvents_isNotNetLoad
public static int numDestroyTxEvents_isNetSearch
public static int numDestroyTxEvents_isNotNetSearch
public static int numInvalidateTxEvents_isDist
public static int numInvalidateTxEvents_isNotDist
public static int numInvalidateTxEvents_isExp
public static int numInvalidateTxEvents_isNotExp
public static int numInvalidateTxEvents_isRemote
public static int numInvalidateTxEvents_isNotRemote
public static int numInvalidateTxEvents_isLoad
public static int numInvalidateTxEvents_isNotLoad
public static int numInvalidateTxEvents_isLocalLoad
public static int numInvalidateTxEvents_isNotLocalLoad
public static int numInvalidateTxEvents_isNetLoad
public static int numInvalidateTxEvents_isNotNetLoad
public static int numInvalidateTxEvents_isNetSearch
public static int numInvalidateTxEvents_isNotNetSearch
public static int numUpdateTxEvents_isDist
public static int numUpdateTxEvents_isNotDist
public static int numUpdateTxEvents_isExp
public static int numUpdateTxEvents_isNotExp
public static int numUpdateTxEvents_isRemote
public static int numUpdateTxEvents_isNotRemote
public static int numUpdateTxEvents_isLoad
public static int numUpdateTxEvents_isNotLoad
public static int numUpdateTxEvents_isLocalLoad
public static int numUpdateTxEvents_isNotLocalLoad
public static int numUpdateTxEvents_isNetLoad
public static int numUpdateTxEvents_isNotNetLoad
public static int numUpdateTxEvents_isNetSearch
public static int numUpdateTxEvents_isNotNetSearch
public TxWriterCountersBB()
public static TxWriterCountersBB getBB()
public static void incrementEntryTxEventCntrs(String eventName, boolean isDistributed, boolean isExpiration, boolean isRemote, boolean isLoad, boolean isLocalLoad, boolean isNetLoad, boolean isNetSearch)
eventName - - An event name as used in this blackboard's counters, such as "TxCreate"isDistributed - - Entry event boolean.isExpiration - - Entry event boolean.isRemote - - Entry event boolean.isLoad - - Entry event boolean.isLocalLoad - - Entry event boolean.isNetLoad - - Entry event boolean.isNetSearch - - Entry event boolean.public void checkEventCounters(ArrayList expectedValues)
expectedValues - An ArrayList of instances of ExpCounterValue.TestException - if any counter does not have the expected value.public void checkTxWriterCounters(long[] expectedValues)
expectedValues - An array of the expected counter values, in the
same order as they are defined in this class. If any value is
< 0, then don't check it.TestException - if any counter does not have the expected value.public static void checkCreateUpdate(long expectedIsDist,
long expectedIsNotDist,
long expectedIsExp,
long expectedIsNotExp,
long expectedIsRemote,
long expectedIsNotRemote)
public void zeroAllCounters()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.