libmuscle.native_instantiator.map_server module
- class libmuscle.native_instantiator.map_server.MAPRequestHandler(agent_manager: IAgentManager, post_office: PostOffice)[source]
Bases:
RequestHandlerHandles Agent requests.
- class libmuscle.native_instantiator.map_server.MAPServer(agent_manager: IAgentManager)[source]
Bases:
objectThe MUSCLE Agent Protocol server.
This class accepts connections from the agents and services them using a MAPRequestHandler.
- deposit_command(node_name: str, command: AgentCommand) None[source]
Deposit a command for the given agent.
This takes the given command and queues it for the given agent to pick up next time it asks us for one.
- Parameters:
node_name – Name of the node whose agent should execute the command
command – The command to send