A test RoutingManagerPolicy which does various "bad" things, determined by configuration.
More...
A test RoutingManagerPolicy which does various "bad" things, determined by configuration.
Definition at line 11 of file MisbehaviorTest_policy.cc.
demo::MisbehaviorTest::MisbehaviorTest |
( |
const fhicl::ParameterSet & |
ps | ) |
|
|
explicit |
MisbehaviorTest Constructor.
- Parameters
-
* Note that only one misbehavior can be configured at a time. MisbehaviorTest will work like NoOp_policy when not
* misbehaving MisbehaviorTest accepts the following Parameters: "misbehave_after_n_events" (Default: 1000): The
* threshold after which it will start misbehaving "misbehave_pause_time_ms" (Default: 0): If greater than 0, will
* pause this long before sending out table updates "misbehave_send_confliting_table_data" (Default: false): If
* true, will send a table that contains the same sequence ID being sent to two different EventBuilders
* "misbehave_send_corrupt_table_data" (Default: false): If true, will send a table that contains an entry created
* using rand(), rand() "misbehave_overload_event_builder" (Default: false): If true, will send a large number of
* events to one EventBuilder
Definition at line 63 of file MisbehaviorTest_policy.cc.
artdaq::detail::RoutingPacketEntry demo::MisbehaviorTest::CreateRouteForSequenceID |
( |
artdaq::Fragment::sequence_id_t |
seq, |
|
|
int |
requesting_rank |
|
) |
| |
|
override |
Using the existing tokens, determine a route for a given Sequence ID.
- Parameters
-
seq | Sequence ID to route |
requesting_rank | Rank requesting the route |
- Returns
- Routing information
Definition at line 130 of file MisbehaviorTest_policy.cc.
void demo::MisbehaviorTest::CreateRoutingTable |
( |
artdaq::detail::RoutingPacket & |
table | ) |
|
|
override |
Use the current tokens to add entries to the routing table.
- Parameters
-
table | Routing Table to append to |
Definition at line 81 of file MisbehaviorTest_policy.cc.
The documentation for this class was generated from the following file: