public class WriterCountersBB 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 |
|---|
WriterCountersBB()
Zero-arg constructor for remote method invocations.
|
WriterCountersBB(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 event counters.
|
void |
checkEventCounters(long[] expectedValues)
Check the value of all event counters.
|
static WriterCountersBB |
getBB()
Get the WriterCountersBB
|
static void |
incrementEntryEventCntrs(String eventName,
boolean isDistributed,
boolean isExpiration,
boolean isRemote,
boolean isLoad,
boolean isLocalLoad,
boolean isNetLoad,
boolean isNetSearch)
Increment the appropriate entry event counters.
|
static void |
incrementRegionEventCntrs(String eventName,
boolean isDistributed,
boolean isExpiration,
boolean isRemote)
Increment the appropriate region event counters.
|
void |
zeroAllCounters()
Zero all counters in this blackboard.
|
createSharedCounters, createSharedLock, createSharedMap, getCounterNames, getSharedCounter, getSharedCounters, getSharedLock, getSharedMap, print, printSharedCounters, printSharedMappublic static int numBeforeCreateEvents_isDist
public static int numBeforeCreateEvents_isNotDist
public static int numBeforeCreateEvents_isExp
public static int numBeforeCreateEvents_isNotExp
public static int numBeforeCreateEvents_isRemote
public static int numBeforeCreateEvents_isNotRemote
public static int numBeforeCreateEvents_isLoad
public static int numBeforeCreateEvents_isNotLoad
public static int numBeforeCreateEvents_isLocalLoad
public static int numBeforeCreateEvents_isNotLocalLoad
public static int numBeforeCreateEvents_isNetLoad
public static int numBeforeCreateEvents_isNotNetLoad
public static int numBeforeCreateEvents_isNetSearch
public static int numBeforeCreateEvents_isNotNetSearch
public static int numBeforeDestroyEvents_isDist
public static int numBeforeDestroyEvents_isNotDist
public static int numBeforeDestroyEvents_isExp
public static int numBeforeDestroyEvents_isNotExp
public static int numBeforeDestroyEvents_isRemote
public static int numBeforeDestroyEvents_isNotRemote
public static int numBeforeDestroyEvents_isLoad
public static int numBeforeDestroyEvents_isNotLoad
public static int numBeforeDestroyEvents_isLocalLoad
public static int numBeforeDestroyEvents_isNotLocalLoad
public static int numBeforeDestroyEvents_isNetLoad
public static int numBeforeDestroyEvents_isNotNetLoad
public static int numBeforeDestroyEvents_isNetSearch
public static int numBeforeDestroyEvents_isNotNetSearch
public static int numBeforeUpdateEvents_isDist
public static int numBeforeUpdateEvents_isNotDist
public static int numBeforeUpdateEvents_isExp
public static int numBeforeUpdateEvents_isNotExp
public static int numBeforeUpdateEvents_isRemote
public static int numBeforeUpdateEvents_isNotRemote
public static int numBeforeUpdateEvents_isLoad
public static int numBeforeUpdateEvents_isNotLoad
public static int numBeforeUpdateEvents_isLocalLoad
public static int numBeforeUpdateEvents_isNotLocalLoad
public static int numBeforeUpdateEvents_isNetLoad
public static int numBeforeUpdateEvents_isNotNetLoad
public static int numBeforeUpdateEvents_isNetSearch
public static int numBeforeUpdateEvents_isNotNetSearch
public static int numBeforeRegionDestroyEvents_isDist
public static int numBeforeRegionDestroyEvents_isNotDist
public static int numBeforeRegionDestroyEvents_isExp
public static int numBeforeRegionDestroyEvents_isNotExp
public static int numBeforeRegionDestroyEvents_isRemote
public static int numBeforeRegionDestroyEvents_isNotRemote
public static int numBeforeRegionClearEvents_isDist
public static int numBeforeRegionClearEvents_isNotDist
public static int numBeforeRegionClearEvents_isExp
public static int numBeforeRegionClearEvents_isNotExp
public static int numBeforeRegionClearEvents_isRemote
public static int numBeforeRegionClearEvents_isNotRemote
public WriterCountersBB()
public static WriterCountersBB getBB()
public static void incrementEntryEventCntrs(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 "BeforeCreate"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 static void incrementRegionEventCntrs(String eventName, boolean isDistributed, boolean isExpiration, boolean isRemote)
eventName - - An event name as used in this blackboard's counters, such as "RegionDestroy"isDistributed - - Entry event boolean.isExpiration - - Entry event boolean.isRemote - - 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 checkEventCounters(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.