public class WBCLEventListener extends Object implements com.gemstone.gemfire.cache.util.GatewayEventListener, com.gemstone.gemfire.cache.Declarable
| Modifier and Type | Field and Description |
|---|---|
static int |
lastEventTime |
protected Executor |
serialExecutor |
int |
whereIWasRegistered
The process ID of the VM that created this listener
|
| Constructor and Description |
|---|
WBCLEventListener()
noArg constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init(Properties prop) |
String |
logCall(String methodName,
com.gemstone.gemfire.cache.util.GatewayEvent event)
Log that a gateway event occurred.
|
boolean |
processEvents(List events)
Counts events based on operation type
|
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.
|
String |
toString(String methodName,
com.gemstone.gemfire.cache.util.GatewayEvent event)
Return a string description of the GatewayEvent.
|
static void |
waitForSilence(long desiredSilenceSec,
long sleepMS)
Return when no events have been invoked for the given number of seconds.
|
public static int lastEventTime
public int whereIWasRegistered
protected Executor serialExecutor
public boolean processEvents(List events)
processEvents in interface com.gemstone.gemfire.cache.util.GatewayEventListenerpublic void init(Properties prop)
init in interface com.gemstone.gemfire.cache.Declarablepublic void close()
close in interface com.gemstone.gemfire.cache.CacheCallbackprotected void throwException(String errStr)
errStr - String to log, post to EventBB and throwTestException - containing the passed in Stringutil.TestHelper.checkForEventErrorpublic String logCall(String methodName, com.gemstone.gemfire.cache.util.GatewayEvent event)
event - The event object that was passed to the event.public String toString(String methodName, com.gemstone.gemfire.cache.util.GatewayEvent event)
event - The GatewayEvent object that was passed to the CqListenerpublic static void waitForSilence(long desiredSilenceSec,
long sleepMS)
sleepMS - The number of milliseonds to sleep between checks for
silence.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.