public class CqQueryTestListener extends Object implements com.gemstone.gemfire.cache.query.CqStatusListener
| Modifier and Type | Field and Description |
|---|---|
com.gemstone.gemfire.internal.concurrent.CLQ |
cqEvents |
String |
cqName |
protected int |
cqsConnectedCount |
protected int |
cqsDisconnectedCount |
Set |
creates |
Set |
destroys |
Set |
errors |
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) |
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 int cqsConnectedCount
protected volatile int cqsDisconnectedCount
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 final Set errors
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 void onCqDisconnected()
onCqDisconnected in interface com.gemstone.gemfire.cache.query.CqStatusListenerpublic void onCqConnected()
onCqConnected in interface com.gemstone.gemfire.cache.query.CqStatusListenerpublic 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 boolean waitForError(String expectedMessage)
public boolean waitForCqsDisconnectedEvents(int total)
public boolean waitForCqsConnectedEvents(int total)
public void getEventHistory()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.