13 Test the correct handling on errors during the event processing: 14 - The CPUCruncher is configured to return an ERROR on a fraction of the events 15 - The EventLoopMgr is configured to continue with the next event on ERROR 19 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
20 AvalancheSchedulerSvc, AlgResourcePool, CPUCruncher,
21 InertMessageSvc, ApplicationMgr, StatusCodeSvc,
32 SchedulerName=
"AvalancheSchedulerSvc",
54 a1.outKeys = [
'/Event/a1']
57 a2.inpKeys = [
'/Event/a1']
58 a2.outKeys = [
'/Event/a2']
61 a3.inpKeys = [
'/Event/a1']
62 a3.outKeys = [
'/Event/a3']
66 a4.inpKeys = [
'/Event/a2']
67 a4.outKeys = [
'/Event/a4']
70 a5.inpKeys = [
'/Event/a3']
71 a5.outKeys = [
'/Event/a5']
73 for algo
in [a1, a2, a3, a4, a5]:
74 algo.Cardinality = cardinality
83 ExtSvc=[whiteboard, scs],
84 EventLoop=slimeventloopmgr,
85 TopAlg=[a1, a2, a3, a4, a5],
86 MessageSvcType=
"InertMessageSvc")
Thread safe extension to the standard MessageSvc.
A class that implements a search for prime numbers.
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
The Application Manager class.