use of org.apache.geode.internal.cache.wan.AbstractGatewaySender in project geode by apache.
the class ConcurrentSerialGatewaySenderOperationsDUnitTest method verifySenderResumedState.
public static void verifySenderResumedState(String senderId) {
Set<GatewaySender> senders = cache.getGatewaySenders();
AbstractGatewaySender sender = null;
for (GatewaySender s : senders) {
if (s.getId().equals(senderId)) {
sender = (AbstractGatewaySender) s;
break;
}
}
assertFalse(sender.isPaused());
assertTrue(sender.isRunning());
}
use of org.apache.geode.internal.cache.wan.AbstractGatewaySender in project geode by apache.
the class ConcurrentSerialGatewaySenderOperationsDUnitTest method verifySenderStoppedState.
public static void verifySenderStoppedState(String senderId) {
Set<GatewaySender> senders = cache.getGatewaySenders();
AbstractGatewaySender sender = null;
for (GatewaySender s : senders) {
if (s.getId().equals(senderId)) {
sender = (AbstractGatewaySender) s;
break;
}
}
assertFalse(sender.isRunning());
assertFalse(sender.isPaused());
}
use of org.apache.geode.internal.cache.wan.AbstractGatewaySender in project geode by apache.
the class ConcurrentSerialGatewaySenderOperationsDUnitTest method verifySenderPausedState.
public static void verifySenderPausedState(String senderId) {
Set<GatewaySender> senders = cache.getGatewaySenders();
AbstractGatewaySender sender = null;
for (GatewaySender s : senders) {
if (s.getId().equals(senderId)) {
sender = (AbstractGatewaySender) s;
break;
}
}
assertTrue(sender.isPaused());
}
use of org.apache.geode.internal.cache.wan.AbstractGatewaySender in project geode by apache.
the class ConcurrentSerialGatewaySenderOperationsDUnitTest method verifyGatewaySenderOperations.
public static void verifyGatewaySenderOperations(String senderId) {
Set<GatewaySender> senders = cache.getGatewaySenders();
GatewaySender sender = null;
for (GatewaySender s : senders) {
if (s.getId().equals(senderId)) {
sender = s;
break;
}
}
assertFalse(sender.isPaused());
assertFalse(((AbstractGatewaySender) sender).isRunning());
sender.pause();
sender.resume();
sender.stop();
}
use of org.apache.geode.internal.cache.wan.AbstractGatewaySender in project geode by apache.
the class ConcurrentParallelGatewaySenderDUnitTest method setTestHook.
public static void setTestHook(String senderId, boolean hook) {
Set<GatewaySender> senders = cache.getGatewaySenders();
GatewaySender sender = null;
for (GatewaySender s : senders) {
if (s.getId().equals(senderId)) {
sender = s;
break;
}
}
ConcurrentParallelGatewaySenderEventProcessor cProc = (ConcurrentParallelGatewaySenderEventProcessor) ((AbstractGatewaySender) sender).getEventProcessor();
if (cProc == null)
return;
cProc.TEST_HOOK = hook;
}
Aggregations