GatewayConnectionConfig
public final class GatewayConnectionConfig implements SandboxConnectionConfig
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:21–70网关连接配置,保存相关配置项。位于 io.agentscope.extensions.sandbox.kubernetes.client.config 包,实现 SandboxConnectionConfig。核心成员包括 gatewayName、gatewayNamespace、gatewayScheme、gatewayReadyTimeoutSeconds、serverPort、GatewayConnectionConfig。
Configuration for connecting via the Kubernetes Gateway API.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public GatewayConnectionConfig(String gatewayName) | 初始化 `GatewayConnectionConfig` 实例。 Creates a new instance. |
public GatewayConnectionConfig(String gatewayName, String gatewayNamespace, String gatewayScheme, long gatewayReadyTimeoutSeconds, int serverPort) | 初始化 `GatewayConnectionConfig` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String gatewayName() | 返回网关名称。 Returns the gateway name. |
public String gatewayNamespace() | 返回网关命名空间。 Returns the gateway namespace. |
public String gatewayScheme() | 返回 `gatewayScheme` 结果。 Returns the gateway scheme. |
public long gatewayReadyTimeoutSeconds() | 返回网关就绪超时秒。 Returns the gateway ready timeout seconds. |
public int serverPort() | 返回 `serverPort` 结果。 Returns the server port. |
构造器详情Constructor Detail
GatewayConnectionConfig
public GatewayConnectionConfig(String gatewayName)
初始化 GatewayConnectionConfig 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayName | String | 网关名称(类型 `String`)。The gateway name. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:29–31GatewayConnectionConfig
public GatewayConnectionConfig(String gatewayName, String gatewayNamespace, String gatewayScheme, long gatewayReadyTimeoutSeconds, int serverPort)
初始化 GatewayConnectionConfig 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayName | String | 网关名称(类型 `String`)。The gateway name. |
gatewayNamespace | String | 网关命名空间(类型 `String`)。The gateway namespace. |
gatewayScheme | String | 网关 Scheme(类型 `String`)。The gateway scheme. |
gatewayReadyTimeoutSeconds | long | 网关就绪超时秒(类型 `long`)。The gateway ready timeout seconds. |
serverPort | int | 服务端 Port(类型 `int`)。The server port. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:33–48方法详情Method Detail
gatewayName
public String gatewayName()
返回网关名称。
Returns the gateway name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:50–52gatewayNamespace
public String gatewayNamespace()
返回网关命名空间。
Returns the gateway namespace.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:54–56gatewayScheme
public String gatewayScheme()
返回 gatewayScheme 结果。
Returns the gateway scheme.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:58–60gatewayReadyTimeoutSeconds
public long gatewayReadyTimeoutSeconds()
返回网关就绪超时秒。
Returns the gateway ready timeout seconds.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:62–64serverPort
public int serverPort()
返回 serverPort 结果。
Returns the server port.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:66–69