public class DeltaClientOldValidationListener
extends com.gemstone.gemfire.cache.util.CacheListenerAdapter
CacheListener implementation attached to the
cache-clients for test validations. The callback methods validate the order
of the data coming via the events. Used by old version VM| Constructor and Description |
|---|
DeltaClientOldValidationListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterCreate in Validator 2)Verify that value received in the event is not null as Feeder always does create() on a key with a Long value. |
void |
afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterDestroy in Validator 2)If the oldValue in the event is not null, update the latest value map for the event key with the oldValue received. |
void |
afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterInvalidate in Validator 2)Verify that oldValue received in the event is not null as Feeder does invalidate() on only those keys which have non-null values. 3)Update the latest value map for the event key with the oldValue received. |
void |
afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterUpdate in Validator 2)Verify that value received in the event is not null as Feeder always generates update on a key with a value's integer attribute is one more than the previous one on this key. 3)If the oldValue received in the event is null,it implies that Feeder invalidated this key in previous operation. |
static void |
throwException(String reason)
This method increments the number of exceptions occured counter in the
blackboard and put the reason string against the exception number in the
shared map.
|
public void afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
afterCreate in interface com.gemstone.gemfire.cache.CacheListenerafterCreate in class com.gemstone.gemfire.cache.util.CacheListenerAdapterevent - -
the entry event received in callbackpublic void afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
latestValues mapafterUpdate in interface com.gemstone.gemfire.cache.CacheListenerafterUpdate in class com.gemstone.gemfire.cache.util.CacheListenerAdapterevent - -
the entry event received in callbackpublic void afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
afterInvalidate in interface com.gemstone.gemfire.cache.CacheListenerafterInvalidate in class com.gemstone.gemfire.cache.util.CacheListenerAdapterevent - -
the entry event received in callbackpublic void afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
latestValues map.afterDestroy in interface com.gemstone.gemfire.cache.CacheListenerafterDestroy in class com.gemstone.gemfire.cache.util.CacheListenerAdapterevent - -
the entry event received in callbackpublic static void throwException(String reason)
reason - -
string description of the cause of the exception.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.