|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.util.CacheListenerAdapter
wan.WANCacheListener
public class WANCacheListener
Class WANCacheListener is a CacheListener that logs
WAN events as they are received.
| Field Summary | |
|---|---|
protected int |
_numberOfEvents
Counter tracking the number of events received |
| Constructor Summary | |
|---|---|
WANCacheListener()
|
|
| Method Summary | |
|---|---|
void |
afterCreate(EntryEvent event)
Processes an afterCreate event. |
void |
afterDestroy(EntryEvent event)
Processes an afterDestroy event. |
void |
afterInvalidate(EntryEvent event)
Processes an afterInvalidate event. |
void |
afterUpdate(EntryEvent event)
Processes an afterUpdate event. |
void |
init(Properties p)
Initializes this WANCacheListener. |
protected void |
processEvent(String operation,
EntryEvent event)
Processes an event by incrementing the number of events received and logging the event's key and new value. |
| Methods inherited from class com.gemstone.gemfire.cache.util.CacheListenerAdapter |
|---|
afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _numberOfEvents
| Constructor Detail |
|---|
public WANCacheListener()
| Method Detail |
|---|
public void afterCreate(EntryEvent event)
afterCreate in interface CacheListenerafterCreate in class CacheListenerAdapterevent - The afterCreate EntryEvent receivedpublic void afterUpdate(EntryEvent event)
afterUpdate in interface CacheListenerafterUpdate in class CacheListenerAdapterevent - The afterUpdate EntryEvent receivedpublic void afterDestroy(EntryEvent event)
afterDestroy in interface CacheListenerafterDestroy in class CacheListenerAdapterevent - The afterDestroy EntryEvent receivedpublic void afterInvalidate(EntryEvent event)
afterInvalidate in interface CacheListenerafterInvalidate in class CacheListenerAdapterevent - The afterInvalidate EntryEvent receivedpublic void init(Properties p)
WANCacheListener.
init in interface Declarablep - The Properties with which to initialize this
WANCacheListener
protected void processEvent(String operation,
EntryEvent event)
operation - The EntryEvent's operation (afterCreate, afterUpdate,
afterDestroy, afterInvalidate)event - The EntryEvent received
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||