public class CqQueryTestListener extends Object implements com.gemstone.gemfire.cache.query.CqListener
| Modifier and Type | Field and Description |
|---|---|
com.gemstone.gemfire.internal.concurrent.CLQ |
cqEvents |
String |
cqName |
Set |
creates |
Set |
destroys |
protected boolean |
eventClose |
protected int |
eventCreateCount |
protected int |
eventDeleteCount |
protected int |
eventErrorCount |
protected int |
eventInvalidateCount |
protected int |
eventQueryDeleteCount |
protected int |
eventQueryInsertCount |
protected int |
eventQueryInvalidateCount |
protected int |
eventQueryUpdateCount |
protected boolean |
eventRegionClear |
protected boolean |
eventRegionInvalidate |
com.gemstone.gemfire.internal.concurrent.CLQ |
events |
protected int |
eventUpdateCount |
Set |
invalidates |
protected com.gemstone.gemfire.LogWriter |
logger |
static long |
MAX_TIME |
protected int |
totalEventCount |
Set |
updates |
static boolean |
usedForUnitTests |
String |
userName |
| Constructor and Description |
|---|
CqQueryTestListener(com.gemstone.gemfire.LogWriter logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCreateEventCount() |
int |
getDeleteEventCount() |
int |
getErrorEventCount() |
void |
getEventHistory() |
Object[] |
getEvents() |
int |
getInvalidateEventCount() |
int |
getQueryDeleteEventCount() |
int |
getQueryInsertEventCount() |
int |
getQueryInvalidateEventCount() |
int |
getQueryUpdateEventCount() |
int |
getTotalEventCount() |
int |
getUpdateEventCount() |
void |
onError(com.gemstone.gemfire.cache.query.CqEvent cqEvent) |
void |
onEvent(com.gemstone.gemfire.cache.query.CqEvent cqEvent) |
void |
printInfo(boolean printKeys) |
boolean |
waitForClose() |
boolean |
waitForCreated(Object key) |
boolean |
waitForDestroyed(Object key) |
boolean |
waitForInvalidated(Object key) |
boolean |
waitForRegionClear() |
boolean |
waitForRegionInvalidate() |
boolean |
waitForTotalEvents(int total) |
boolean |
waitForUpdated(Object key) |
protected final com.gemstone.gemfire.LogWriter logger
protected volatile int eventCreateCount
protected volatile int eventUpdateCount
protected volatile int eventDeleteCount
protected volatile int eventInvalidateCount
protected volatile int eventErrorCount
protected volatile int totalEventCount
protected volatile int eventQueryInsertCount
protected volatile int eventQueryUpdateCount
protected volatile int eventQueryDeleteCount
protected volatile int eventQueryInvalidateCount
protected volatile boolean eventClose
protected volatile boolean eventRegionClear
protected volatile boolean eventRegionInvalidate
public final Set destroys
public final Set creates
public final Set invalidates
public final Set updates
public static final long MAX_TIME
public String cqName
public String userName
public static boolean usedForUnitTests
public com.gemstone.gemfire.internal.concurrent.CLQ events
public com.gemstone.gemfire.internal.concurrent.CLQ cqEvents
public CqQueryTestListener(com.gemstone.gemfire.LogWriter logger)
public void onEvent(com.gemstone.gemfire.cache.query.CqEvent cqEvent)
onEvent in interface com.gemstone.gemfire.cache.query.CqListenerpublic void onError(com.gemstone.gemfire.cache.query.CqEvent cqEvent)
onError in interface com.gemstone.gemfire.cache.query.CqListenerpublic int getErrorEventCount()
public int getTotalEventCount()
public int getCreateEventCount()
public int getUpdateEventCount()
public int getDeleteEventCount()
public int getInvalidateEventCount()
public int getQueryInsertEventCount()
public int getQueryUpdateEventCount()
public int getQueryDeleteEventCount()
public int getQueryInvalidateEventCount()
public Object[] getEvents()
public void close()
close in interface com.gemstone.gemfire.cache.CacheCallbackpublic void printInfo(boolean printKeys)
public boolean waitForCreated(Object key)
public boolean waitForTotalEvents(int total)
public boolean waitForDestroyed(Object key)
public boolean waitForInvalidated(Object key)
public boolean waitForUpdated(Object key)
public boolean waitForClose()
public boolean waitForRegionClear()
public boolean waitForRegionInvalidate()
public void getEventHistory()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.