Class McpSession
java.lang.Object
org.frankframework.mcp.McpSession
Keeps track of the cluster member (a Frank!Framework worker) that requests are routed to.
When the gateway supports clustering (Hazelcast) the framework can consist of multiple members. Just like the Frank!Console keeps a selected member in the HTTP session, the MCP server keeps the selected member for the lifetime of the process so subsequent tool calls target the same worker.
For gateways that do not expose members (such as the HTTP gateway) the target is null, which lets the gateway route to its single, implicit destination.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetMemberTarget(UUID id) Select the member that subsequent requests should be routed to.
-
Constructor Details
-
McpSession
-
-
Method Details
-
setMemberTarget
Select the member that subsequent requests should be routed to.- Parameters:
id- the id of a knownworkermember- Throws:
IllegalArgumentException- when no member with the given id exists, or it is not aworker
-