AS AgentScopeAPI 手册 / API Reference

LocalTunnelConnectionConfig

public final class LocalTunnelConnectionConfig implements SandboxConnectionConfig
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:25–62

本地 Tunnel 连接配置,保存相关配置项。位于 io.agentscope.extensions.sandbox.kubernetes.client.config 包,实现 SandboxConnectionConfig。核心成员包括 portForwardReadyTimeoutSeconds、routerNamespace、serverPort、LocalTunnelConnectionConfig。

Configuration for connecting via a local port-forward tunnel to the sandbox-router service (development / out-of-cluster mode).

构造器摘要Constructor Summary

构造器Constructor说明Description
public LocalTunnelConnectionConfig()
初始化 `LocalTunnelConnectionConfig` 实例。
Creates a new instance.
public LocalTunnelConnectionConfig(long portForwardReadyTimeoutSeconds, int serverPort, String routerNamespace)
初始化 `LocalTunnelConnectionConfig` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public long portForwardReadyTimeoutSeconds()
返回 `portForwardReadyTimeoutSeconds` 结果。
Returns the port forward ready timeout seconds.
public String routerNamespace()
返回 `routerNamespace` 结果。
Returns the router namespace.
public int serverPort()
返回 `serverPort` 结果。
Returns the server port.

构造器详情Constructor Detail

LocalTunnelConnectionConfig

public LocalTunnelConnectionConfig()

初始化 LocalTunnelConnectionConfig 实例。

Creates a new instance.

源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:34–36

LocalTunnelConnectionConfig

public LocalTunnelConnectionConfig(long portForwardReadyTimeoutSeconds, int serverPort, String routerNamespace)

初始化 LocalTunnelConnectionConfig 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
portForwardReadyTimeoutSecondslongport Forward 就绪超时秒(类型 `long`)。The port forward ready timeout seconds.
serverPortint服务端 Port(类型 `int`)。The server port.
routerNamespaceStringrouter 命名空间(类型 `String`)。The router namespace.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:38–48

方法详情Method Detail

portForwardReadyTimeoutSeconds

public long portForwardReadyTimeoutSeconds()

返回 portForwardReadyTimeoutSeconds 结果。

Returns the port forward ready timeout seconds.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:50–52

routerNamespace

public String routerNamespace()

返回 routerNamespace 结果。

Returns the router namespace.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:54–56

serverPort

public int serverPort()

返回 serverPort 结果。

Returns the server port.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:58–61
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.