public class BWCTestWriter extends AbstractWriter implements com.gemstone.gemfire.cache.CacheWriter, com.gemstone.gemfire.cache.Declarable
WriterCountersBBCntrName_BeforeCreate_isDist, CntrName_BeforeCreate_isExp, CntrName_BeforeCreate_isLoad, CntrName_BeforeCreate_isLocalLoad, CntrName_BeforeCreate_isNetLoad, CntrName_BeforeCreate_isNetSearch, CntrName_BeforeCreate_isNotDist, CntrName_BeforeCreate_isNotExp, CntrName_BeforeCreate_isNotLoad, CntrName_BeforeCreate_isNotLocalLoad, CntrName_BeforeCreate_isNotNetLoad, CntrName_BeforeCreate_isNotNetSearch, CntrName_BeforeCreate_isNotRemote, CntrName_BeforeCreate_isRemote, CntrName_BeforeDestroy_isDist, CntrName_BeforeDestroy_isExp, CntrName_BeforeDestroy_isLoad, CntrName_BeforeDestroy_isLocalLoad, CntrName_BeforeDestroy_isNetLoad, CntrName_BeforeDestroy_isNetSearch, CntrName_BeforeDestroy_isNotDist, CntrName_BeforeDestroy_isNotExp, CntrName_BeforeDestroy_isNotLoad, CntrName_BeforeDestroy_isNotLocalLoad, CntrName_BeforeDestroy_isNotNetLoad, CntrName_BeforeDestroy_isNotNetSearch, CntrName_BeforeDestroy_isNotRemote, CntrName_BeforeDestroy_isRemote, CntrName_BeforeRegionClear_isDist, CntrName_BeforeRegionClear_isExp, CntrName_BeforeRegionClear_isNotDist, CntrName_BeforeRegionClear_isNotExp, CntrName_BeforeRegionClear_isNotRemote, CntrName_BeforeRegionClear_isRemote, CntrName_BeforeRegionDestroy_isDist, CntrName_BeforeRegionDestroy_isExp, CntrName_BeforeRegionDestroy_isNotDist, CntrName_BeforeRegionDestroy_isNotExp, CntrName_BeforeRegionDestroy_isNotRemote, CntrName_BeforeRegionDestroy_isRemote, CntrName_BeforeUpdate_isDist, CntrName_BeforeUpdate_isExp, CntrName_BeforeUpdate_isLoad, CntrName_BeforeUpdate_isLocalLoad, CntrName_BeforeUpdate_isNetLoad, CntrName_BeforeUpdate_isNetSearch, CntrName_BeforeUpdate_isNotDist, CntrName_BeforeUpdate_isNotExp, CntrName_BeforeUpdate_isNotLoad, CntrName_BeforeUpdate_isNotLocalLoad, CntrName_BeforeUpdate_isNotNetLoad, CntrName_BeforeUpdate_isNotNetSearch, CntrName_BeforeUpdate_isNotRemote, CntrName_BeforeUpdate_isRemote, whereIWasRegistered| Constructor and Description |
|---|
BWCTestWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCreate(com.gemstone.gemfire.cache.EntryEvent event) |
void |
beforeDestroy(com.gemstone.gemfire.cache.EntryEvent event) |
void |
beforeRegionClear(com.gemstone.gemfire.cache.RegionEvent event) |
void |
beforeRegionDestroy(com.gemstone.gemfire.cache.RegionEvent event) |
void |
beforeUpdate(com.gemstone.gemfire.cache.EntryEvent event) |
protected void |
checkCallback(com.gemstone.gemfire.cache.CacheEvent event,
String expectedCallbackPrefix)
Check that the callback object is expected.
|
protected void |
checkVM() |
protected void |
checkVM(com.gemstone.gemfire.cache.EntryEvent event)
Check that this method is running in the same VM where the writer
was created.
|
void |
close() |
void |
init(Properties prop) |
protected void |
throwException(String errStr)
Utility method to write an Exception string to the Event Blackboard and
to also throw an exception containing the same string.
|
public void beforeCreate(com.gemstone.gemfire.cache.EntryEvent event)
beforeCreate in interface com.gemstone.gemfire.cache.CacheWriterpublic void beforeDestroy(com.gemstone.gemfire.cache.EntryEvent event)
beforeDestroy in interface com.gemstone.gemfire.cache.CacheWriterpublic void beforeUpdate(com.gemstone.gemfire.cache.EntryEvent event)
beforeUpdate in interface com.gemstone.gemfire.cache.CacheWriterpublic void beforeRegionDestroy(com.gemstone.gemfire.cache.RegionEvent event)
beforeRegionDestroy in interface com.gemstone.gemfire.cache.CacheWriterpublic void beforeRegionClear(com.gemstone.gemfire.cache.RegionEvent event)
beforeRegionClear in interface com.gemstone.gemfire.cache.CacheWriterpublic void close()
close in interface com.gemstone.gemfire.cache.CacheCallbackprotected void checkVM(com.gemstone.gemfire.cache.EntryEvent event)
protected void checkVM()
protected void checkCallback(com.gemstone.gemfire.cache.CacheEvent event,
String expectedCallbackPrefix)
event - The event object.expectedCallbackPrefix - - The expected prefix on the callback object (String).protected void throwException(String errStr)
errStr - String to log, post to TxBB and throwTestException - containing the passed in Stringutil.TestHelper.checkForEventErrorpublic void init(Properties prop)
init in interface com.gemstone.gemfire.cache.DeclarableCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.