passengersim.callbacks.

configured

Registered implementations for config-selected callbacks, separate from global attachment.

A registration makes a callback or tracer available by name to config.callbacks; it never attaches anything to a simulation. There are two families of registration functions:

Classes

CallbackDefinition(factory, when, ...[, ...])

Factory metadata used to validate and construct one callback per simulation.

Functions

options_model_from_signature(cls)

Build a configured-callback options model from a class's constructor.

preflight(owner)

Validate the configuration and collect the definitions needed by trial workers.

prepare(owner[, definitions])

Build fresh callbacks and replace only prior configured attachments.

register_callback()

Make a callback function available to config.callbacks, without attaching it.

register_callback_factory(name, *, factory, ...)

Make a factory available to YAML declarations without attaching it.

register_tracer()

Make a tracer class available to config.callbacks, without attaching it.

register_tracer_factory(cls, *[, ...])

Register a tracer using the configuration it declares on its class.