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–36LocalTunnelConnectionConfig
public LocalTunnelConnectionConfig(long portForwardReadyTimeoutSeconds, int serverPort, String routerNamespace)
初始化 LocalTunnelConnectionConfig 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
portForwardReadyTimeoutSeconds | long | port Forward 就绪超时秒(类型 `long`)。The port forward ready timeout seconds. |
serverPort | int | 服务端 Port(类型 `int`)。The server port. |
routerNamespace | String | router 命名空间(类型 `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.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:50–52routerNamespace
public String routerNamespace()
返回 routerNamespace 结果。
Returns the router namespace.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:54–56serverPort
public int serverPort()
返回 serverPort 结果。
Returns the server port.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/LocalTunnelConnectionConfig.java:58–61