AgentContextManager

internal class AgentContextManager(isTestMode: Boolean)(source)

Registry for connected agents and in-flight chunked scrape contexts.

Manages two concurrent maps: one mapping agent IDs to their AgentContext instances, and another mapping scrape IDs to ChunkedContext instances for chunked transfers. Provides lookup, addition, removal, stale-agent detection, and bulk invalidation of agent contexts.

Parameters

isTestMode

when true, suppresses verbose logging during tests

See also

Constructors

Link copied to clipboard
constructor(isTestMode: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal fun putAgentContext(agentId: String, context: AgentContext)
Link copied to clipboard
fun putChunkedContext(scrapeId: Long, context: ChunkedContext)
Link copied to clipboard
Link copied to clipboard