serverNode.getNodeId());
assertEquals(DummyNodeMappingService.getActiveCount(id), 1);
txnSchedulerZero.runTask(
new TestAbstractKernelRunnable() {
public void run() {
Counter counter = getClearedCounter();
taskServiceZero.scheduleTask(new TestTask(), 300L);
}
}, id);
Thread.sleep(200);
assertEquals(DummyNodeMappingService.getActiveCount(id), 2);
Thread.sleep(800);
assertEquals(DummyNodeMappingService.getActiveCount(id), 1);
txnSchedulerZero.runTask(
new TestAbstractKernelRunnable() {
public void run() {
Counter counter = getClearedCounter();
for (int i = 0; i < 5; i++)
taskServiceZero.scheduleTask(new TestTask(), 300L);
}
}, id);