Class McpSession

java.lang.Object
org.frankframework.mcp.McpSession

public class McpSession extends Object
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 Details

  • Method Details

    • setMemberTarget

      public void setMemberTarget(UUID id)
      Select the member that subsequent requests should be routed to.
      Parameters:
      id - the id of a known worker member
      Throws:
      IllegalArgumentException - when no member with the given id exists, or it is not a worker