3 Test the correct handling on errors during the event processing: 4 - The CPUCruncher is configured to return an ERROR on a fraction of the events 5 - The EventLoopMgr is configured to continue with the next event on ERROR 9 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
10 AvalancheSchedulerSvc, AlgResourcePool, CPUCruncher,
11 InertMessageSvc, ApplicationMgr, StatusCodeSvc,
22 SchedulerName=
"AvalancheSchedulerSvc",
44 a1.outKeys = [
'/Event/a1']
47 a2.inpKeys = [
'/Event/a1']
48 a2.outKeys = [
'/Event/a2']
51 a3.inpKeys = [
'/Event/a1']
52 a3.outKeys = [
'/Event/a3']
56 a4.inpKeys = [
'/Event/a2']
57 a4.outKeys = [
'/Event/a4']
60 a5.inpKeys = [
'/Event/a3']
61 a5.outKeys = [
'/Event/a5']
63 for algo
in [a1, a2, a3, a4, a5]:
64 algo.Cardinality = cardinality
73 ExtSvc=[whiteboard, scs],
74 EventLoop=slimeventloopmgr,
75 TopAlg=[a1, a2, a3, a4, a5],
76 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.