ProxyPathManager

internal class ProxyPathManager(proxy: Proxy, isTestMode: Boolean)(source)

Maps scrape URL paths to their registered AgentContext instances.

Maintains a synchronized path map that supports both exclusive (one agent per path) and consolidated (multiple agents per path) registration modes. Handles path addition, removal, agent displacement, and cleanup on agent disconnect. Provides the service discovery path list and plain-text diagnostics.

Parameters

proxy

the parent Proxy instance

isTestMode

when true, suppresses verbose logging during tests

See also

Constructors

Link copied to clipboard
constructor(proxy: Proxy, isTestMode: Boolean)

Types

Link copied to clipboard
data class AgentContextInfo(val isConsolidated: Boolean, val labels: String, val agentContexts: MutableList<AgentContext>)
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addPath(path: String, labels: String, agentContext: AgentContext): String?

Adds a path to the path map for the given agent context.

Link copied to clipboard
fun removeFromPathManager(agentId: String, reason: String)
Link copied to clipboard
fun removePath(path: String, agentId: String): UnregisterPathResponse
Link copied to clipboard