public class PutAllListener extends AbstractListener implements com.gemstone.gemfire.cache.CacheListener, com.gemstone.gemfire.cache.Declarable
EventBB.isSerialExecution(),
OperationCountersBBCntrName_AfterCreate_isDist, CntrName_AfterCreate_isExp, CntrName_AfterCreate_isLoad, CntrName_AfterCreate_isLocalLoad, CntrName_AfterCreate_isNetLoad, CntrName_AfterCreate_isNetSearch, CntrName_AfterCreate_isNotDist, CntrName_AfterCreate_isNotExp, CntrName_AfterCreate_isNotLoad, CntrName_AfterCreate_isNotLocalLoad, CntrName_AfterCreate_isNotNetLoad, CntrName_AfterCreate_isNotNetSearch, CntrName_AfterCreate_isNotPutAll, CntrName_AfterCreate_isNotRemote, CntrName_AfterCreate_isPutAll, CntrName_AfterCreate_isRemote, CntrName_AfterDestroy_isDist, CntrName_AfterDestroy_isExp, CntrName_AfterDestroy_isLoad, CntrName_AfterDestroy_isLocalLoad, CntrName_AfterDestroy_isNetLoad, CntrName_AfterDestroy_isNetSearch, CntrName_AfterDestroy_isNotDist, CntrName_AfterDestroy_isNotExp, CntrName_AfterDestroy_isNotLoad, CntrName_AfterDestroy_isNotLocalLoad, CntrName_AfterDestroy_isNotNetLoad, CntrName_AfterDestroy_isNotNetSearch, CntrName_AfterDestroy_isNotRemote, CntrName_AfterDestroy_isRemote, CntrName_AfterInvalidate_isDist, CntrName_AfterInvalidate_isExp, CntrName_AfterInvalidate_isLoad, CntrName_AfterInvalidate_isLocalLoad, CntrName_AfterInvalidate_isNetLoad, CntrName_AfterInvalidate_isNetSearch, CntrName_AfterInvalidate_isNotDist, CntrName_AfterInvalidate_isNotExp, CntrName_AfterInvalidate_isNotLoad, CntrName_AfterInvalidate_isNotLocalLoad, CntrName_AfterInvalidate_isNotNetLoad, CntrName_AfterInvalidate_isNotNetSearch, CntrName_AfterInvalidate_isNotRemote, CntrName_AfterInvalidate_isRemote, CntrName_AfterRegionCreate_isDist, CntrName_AfterRegionCreate_isExp, CntrName_AfterRegionCreate_isNotDist, CntrName_AfterRegionCreate_isNotExp, CntrName_AfterRegionCreate_isNotRemote, CntrName_AfterRegionCreate_isRemote, CntrName_AfterRegionDestroy_isDist, CntrName_AfterRegionDestroy_isExp, CntrName_AfterRegionDestroy_isNotDist, CntrName_AfterRegionDestroy_isNotExp, CntrName_AfterRegionDestroy_isNotRemote, CntrName_AfterRegionDestroy_isRemote, CntrName_AfterRegionInvalidate_isDist, CntrName_AfterRegionInvalidate_isExp, CntrName_AfterRegionInvalidate_isNotDist, CntrName_AfterRegionInvalidate_isNotExp, CntrName_AfterRegionInvalidate_isNotRemote, CntrName_AfterRegionInvalidate_isRemote, CntrName_AfterRegionLive_isDist, CntrName_AfterRegionLive_isExp, CntrName_AfterRegionLive_isNotDist, CntrName_AfterRegionLive_isNotExp, CntrName_AfterRegionLive_isNotRemote, CntrName_AfterRegionLive_isRemote, CntrName_AfterUpdate_isDist, CntrName_AfterUpdate_isExp, CntrName_AfterUpdate_isLoad, CntrName_AfterUpdate_isLocalLoad, CntrName_AfterUpdate_isNetLoad, CntrName_AfterUpdate_isNetSearch, CntrName_AfterUpdate_isNotDist, CntrName_AfterUpdate_isNotExp, CntrName_AfterUpdate_isNotLoad, CntrName_AfterUpdate_isNotLocalLoad, CntrName_AfterUpdate_isNotNetLoad, CntrName_AfterUpdate_isNotNetSearch, CntrName_AfterUpdate_isNotPutAll, CntrName_AfterUpdate_isNotRemote, CntrName_AfterUpdate_isPutAll, CntrName_AfterUpdate_isRemote, CntrName_Close, whereIWasRegistered| Constructor and Description |
|---|
PutAllListener()
noArg constructor which sets isCarefulValidation based on the tests
setting of serialExecution
|
PutAllListener(boolean isCarefulValidation)
Create a new listener and specify whether the test is doing careful validation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
Handles the event of new key being added to region: increments counters,
performs validation.
|
void |
afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
Handles the event and entry being destroyed: increments counters, performs validation.
|
void |
afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
Handles the event of an entry's value being invalidated: increments counters,
performs validation.
|
void |
afterRegionClear(com.gemstone.gemfire.cache.RegionEvent event)
Handles the event of region being cleared: increments counters,
performs validation.
|
void |
afterRegionCreate(com.gemstone.gemfire.cache.RegionEvent event)
Handles the event of a region being created: increments counters,
performs validation.
|
void |
afterRegionDestroy(com.gemstone.gemfire.cache.RegionEvent event)
Handles the event of a region being destroyed: increments counters,
performs validation.
|
void |
afterRegionInvalidate(com.gemstone.gemfire.cache.RegionEvent event)
Handles the event of region being invalidated: increments counters,
performs validation.
|
void |
afterRegionLive(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
Handles the event of new key being modified in a region: increments counters,
performs validation.
|
protected void |
checkVM()
Check that this method is running in the same VM where the listener
was created.
|
void |
close()
Called when the region containing this callback is destroyed, when the cache
is closed, or when a callback is removed from a region using an
AttributesMutator. |
void |
init(Properties prop) |
protected void |
throwException(String errStr)
Utility method to write the exception to the EventCountersBB where it can be used to
throw an Exception back to hydra's Master Controller.
|
protected void |
verifyOperationMethods(com.gemstone.gemfire.cache.EntryEvent event)
Verify that (entry) event & operation methods are in sync with one another.
|
protected void |
verifyOperationMethods(com.gemstone.gemfire.cache.RegionEvent event)
Check that methods on (region) event & operation agree with one another
|
getNewValueStr, getOldValueStr, incrementAfterCreateCounters, incrementAfterCreateCounters, incrementAfterDestroyCounters, incrementAfterDestroyCounters, incrementAfterInvalidateCounters, incrementAfterInvalidateCounters, incrementAfterRegionCreateCounters, incrementAfterRegionCreateCounters, incrementAfterRegionDestroyCounters, incrementAfterRegionDestroyCounters, incrementAfterRegionInvalidateCounters, incrementAfterRegionInvalidateCounters, incrementAfterRegionLiveCounters, incrementAfterRegionLiveCounters, incrementAfterUpdateCounters, incrementAfterUpdateCounters, incrementCloseCounter, logCall, logCQEvent, logCQEventAsSummary, logTxEvent, toString, toString, toString, toStringpublic PutAllListener()
public PutAllListener(boolean isCarefulValidation)
isCarefulValidation - true if the test is doing careful validate (serial test)
false otherwise.public void afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
afterCreate in interface com.gemstone.gemfire.cache.CacheListenerevent - the EntryEventTestException - if validation failspublic void afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
afterDestroy in interface com.gemstone.gemfire.cache.CacheListenerevent - the EntryEventTestException - if validation failspublic void afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
afterInvalidate in interface com.gemstone.gemfire.cache.CacheListenerevent - the EntryEventTestException - if validation failspublic void afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
afterUpdate in interface com.gemstone.gemfire.cache.CacheListenerevent - the EntryEventTestException - if validation failspublic void afterRegionDestroy(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionDestroy in interface com.gemstone.gemfire.cache.CacheListenerevent - the RegionEventTestException - if validation failspublic void afterRegionInvalidate(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionInvalidate in interface com.gemstone.gemfire.cache.CacheListenerevent - the RegionEventTestException - if validation failspublic void afterRegionClear(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionClear in interface com.gemstone.gemfire.cache.CacheListenerevent - the RegionEventTestException - if validation failspublic void afterRegionLive(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionLive in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterRegionCreate(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionCreate in interface com.gemstone.gemfire.cache.CacheListenerevent - the RegionEventTestException - if validation failspublic void close()
AttributesMutator. Increments counters and performs validation.close in interface com.gemstone.gemfire.cache.CacheCallbackTestException - if validation failsprotected void verifyOperationMethods(com.gemstone.gemfire.cache.EntryEvent event)
event - the EntryEventTestException - if validation failsprotected void verifyOperationMethods(com.gemstone.gemfire.cache.RegionEvent event)
event - the RegionEventTestException - if validation failsprotected void throwException(String errStr)
errStr - the error string to include in the ExceptionTestException - if validation failsTestHelper.checkForEventErrorprotected void checkVM()
TestException - if validation failspublic void init(Properties prop)
init in interface com.gemstone.gemfire.cache.DeclarableCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.