AgentPathManager

internal class AgentPathManager(agent: Agent)(source)

Manages the agent's path registration lifecycle with the proxy.

Loads path configurations from the agent's HOCON config, registers each path with the proxy via gRPC, and maintains a local map of path to PathContext (URL, labels, path ID). Supports dynamic registration and unregistration at runtime.

Parameters

agent

the parent Agent instance

See also

Constructors

Link copied to clipboard
constructor(agent: Agent)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class PathContext(val pathId: Long, val path: String, val url: String, val labels: String)

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
Link copied to clipboard
suspend fun pathMapSize(): Int
Link copied to clipboard
suspend fun registerPath(pathVal: String, url: String, labels: String = "{}")
Link copied to clipboard
suspend fun registerPaths()
Link copied to clipboard
Link copied to clipboard
suspend fun unregisterPath(pathVal: String)