Search in sources :

Example 6 with EventDummy

use of org.aion.evtmgr.impl.evt.EventDummy in project aion by aionnetwork.

the class EventExecuteService method shutdown.

public void shutdown() {
    callbackEvt.clear();
    callbackEvt.add(new EventDummy());
    es.shutdown();
}
Also used : EventDummy(org.aion.evtmgr.impl.evt.EventDummy)

Example 7 with EventDummy

use of org.aion.evtmgr.impl.evt.EventDummy in project aion by aionnetwork.

the class EventMgrA0Test method testNewEvent.

@Test
public void testNewEvent() {
    EventMgrA0 testManager = new EventMgrA0(properties);
    boolean res = testManager.newEvent(new EventDummy());
    assertTrue(res);
    boolean res2 = testManager.newEvent(new EventBlock(EventBlock.CALLBACK.ONBLOCK0));
    assertTrue(res2);
}
Also used : EventBlock(org.aion.evtmgr.impl.evt.EventBlock) EventDummy(org.aion.evtmgr.impl.evt.EventDummy) Test(org.junit.Test)

Aggregations

EventDummy (org.aion.evtmgr.impl.evt.EventDummy)7 Test (org.junit.Test)4 EventBlock (org.aion.evtmgr.impl.evt.EventBlock)3 IEvent (org.aion.evtmgr.IEvent)2 EventConsensus (org.aion.evtmgr.impl.evt.EventConsensus)2 ArrayList (java.util.ArrayList)1 EventMiner (org.aion.evtmgr.impl.evt.EventMiner)1 EventTx (org.aion.evtmgr.impl.evt.EventTx)1 BlockHandler (org.aion.evtmgr.impl.handler.BlockHandler)1