libmuscle.manager.mmp_server module
- class libmuscle.manager.mmp_server.MMPRequestHandler(logger: Logger, profile_store: ProfileStore, configuration: Configuration, instance_registry: InstanceRegistry, topology_store: TopologyStore, snapshot_registry: SnapshotRegistry, deadlock_detector: DeadlockDetector, run_dir: RunDir | None)[source]
Bases:
RequestHandlerHandles Manager requests.
- class libmuscle.manager.mmp_server.MMPServer(logger: Logger, profile_store: ProfileStore, configuration: Configuration, instance_registry: InstanceRegistry, topology_store: TopologyStore, snapshot_registry: SnapshotRegistry, deadlock_detector: DeadlockDetector, run_dir: RunDir | None)[source]
Bases:
objectThe MUSCLE Manager Protocol server.
This class accepts connections from the instances comprising the multiscale model to be executed, and services them using an MMPRequestHandler.
- libmuscle.manager.mmp_server.decode_operator(data: str) Operator[source]
Create an Operator from a MsgPack-compatible value.
- libmuscle.manager.mmp_server.decode_port(data: list[str]) Port[source]
Create a Port from a MsgPack-compatible value.
- libmuscle.manager.mmp_server.encode_checkpoint_rule(rule: CheckpointRule) dict[str, Any][source]
Convert a CheckpointRule to a MsgPack-compatible value.
- libmuscle.manager.mmp_server.encode_checkpoints(checkpoints: Checkpoints) dict[str, Any][source]
Convert a Checkpoins to a MsgPack-compatible value.