KubernetesSandboxClientOptions
public class KubernetesSandboxClientOptions extends SandboxClientOptions
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:24–194Kubernetes 沙箱客户端选项,保存相关配置项。位于 io.agentscope.extensions.sandbox.kubernetes 包,继承自 SandboxClientOptions。核心成员包括 getType、createClient、getKubernetesClient、setKubernetesClient、getKubernetesConfig、setKubernetesConfig。
Options for KubernetesSandboxClient (agent-sandbox mode).
方法摘要Method Summary
方法详情Method Detail
getType
public String getType()
获取类型。
Returns the type.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:57–60createClient
public SandboxClient<? extends SandboxClientOptions> createClient()
创建客户端。
Creates the client.
SandboxClient<? extends SandboxClientOptions>io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:62–65getKubernetesClient
public KubernetesClient getKubernetesClient()
获取 getKubernetesClient。
Returns the kubernetes client.
KubernetesClientio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:67–69setKubernetesClient
public void setKubernetesClient(KubernetesClient kubernetesClient)
设置 setKubernetesClient。
Sets the kubernetes client.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
kubernetesClient | KubernetesClient | Kubernetes 客户端(类型 `KubernetesClient`)。The kubernetes client. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:71–73getKubernetesConfig
public Config getKubernetesConfig()
获取 getKubernetesConfig。
Returns the kubernetes config.
Configio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:75–77setKubernetesConfig
public void setKubernetesConfig(Config kubernetesConfig)
设置 setKubernetesConfig。
Sets the kubernetes config.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
kubernetesConfig | Config | Kubernetes 配置(类型 `Config`)。The kubernetes config. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:79–81getNamespace
public String getNamespace()
获取命名空间。
Returns the namespace.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:83–85setNamespace
public void setNamespace(String namespace)
设置命名空间。
Sets the namespace.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
namespace | String | 命名空间(类型 `String`)。The namespace. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:87–89getWarmPoolName
public String getWarmPoolName()
获取 getWarmPoolName。
Returns the warm pool name.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:91–93setWarmPoolName
public void setWarmPoolName(String warmPoolName)
设置 setWarmPoolName。
Sets the warm pool name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
warmPoolName | String | warm 连接池名称(类型 `String`)。The warm pool name. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:95–97getWorkspaceRoot
public String getWorkspaceRoot()
获取工作区根。
Returns the workspace root.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:99–101setWorkspaceRoot
public void setWorkspaceRoot(String workspaceRoot)
设置工作区根。
Sets the workspace root.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspaceRoot | String | 工作区根(类型 `String`)。The workspace root. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:103–105getFileApiBaseDir
public String getFileApiBaseDir()
获取文件 API 基类目录。
Returns the file api base dir.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:107–109setFileApiBaseDir
public void setFileApiBaseDir(String fileApiBaseDir)
设置文件 API 基类目录。
Sets the file api base dir.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
fileApiBaseDir | String | 文件 API 基类目录(类型 `String`)。The file api base dir. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:111–113getApiUrl
public String getApiUrl()
获取API URL。
Returns the api url.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:115–117setApiUrl
public void setApiUrl(String apiUrl)
设置API URL。
Sets the api url.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiUrl | String | API URL(类型 `String`)。The api url. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:119–121getGatewayName
public String getGatewayName()
获取网关名称。
Returns the gateway name.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:123–125setGatewayName
public void setGatewayName(String gatewayName)
设置网关名称。
Sets the gateway name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayName | String | 网关名称(类型 `String`)。The gateway name. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:127–129getGatewayNamespace
public String getGatewayNamespace()
获取网关命名空间。
Returns the gateway namespace.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:131–133setGatewayNamespace
public void setGatewayNamespace(String gatewayNamespace)
设置网关命名空间。
Sets the gateway namespace.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayNamespace | String | 网关命名空间(类型 `String`)。The gateway namespace. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:135–137getGatewayScheme
public String getGatewayScheme()
获取 getGatewayScheme。
Returns the gateway scheme.
Stringio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:139–141setGatewayScheme
public void setGatewayScheme(String gatewayScheme)
设置 setGatewayScheme。
Sets the gateway scheme.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayScheme | String | 网关 Scheme(类型 `String`)。The gateway scheme. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:143–145getServerPort
public int getServerPort()
获取 getServerPort。
Returns the server port.
intio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:147–149setServerPort
public void setServerPort(int serverPort)
设置 setServerPort。
Sets the server port.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverPort | int | 服务端 Port(类型 `int`)。The server port. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:151–153getSandboxReadyTimeoutSeconds
public long getSandboxReadyTimeoutSeconds()
获取沙箱就绪超时秒。
Returns the sandbox ready timeout seconds.
longio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:155–157setSandboxReadyTimeoutSeconds
public void setSandboxReadyTimeoutSeconds(long sandboxReadyTimeoutSeconds)
设置沙箱就绪超时秒。
Sets the sandbox ready timeout seconds.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sandboxReadyTimeoutSeconds | long | 沙箱就绪超时秒(类型 `long`)。The sandbox ready timeout seconds. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:159–161getCleanupTimeoutSeconds
public long getCleanupTimeoutSeconds()
获取 getCleanupTimeoutSeconds。
Returns the cleanup timeout seconds.
longio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:163–165setCleanupTimeoutSeconds
public void setCleanupTimeoutSeconds(long cleanupTimeoutSeconds)
设置 setCleanupTimeoutSeconds。
Sets the cleanup timeout seconds.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
cleanupTimeoutSeconds | long | cleanup 超时秒(类型 `long`)。The cleanup timeout seconds. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:167–169getRequestTimeoutSeconds
public long getRequestTimeoutSeconds()
获取请求超时秒。
Returns the request timeout seconds.
longio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:171–173setRequestTimeoutSeconds
public void setRequestTimeoutSeconds(long requestTimeoutSeconds)
设置请求超时秒。
Sets the request timeout seconds.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
requestTimeoutSeconds | long | 请求超时秒(类型 `long`)。The request timeout seconds. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:175–177getPerAttemptTimeoutSeconds
public long getPerAttemptTimeoutSeconds()
获取每个尝试超时秒。
Returns the per attempt timeout seconds.
longio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:179–181setPerAttemptTimeoutSeconds
public void setPerAttemptTimeoutSeconds(long perAttemptTimeoutSeconds)
设置每个尝试超时秒。
Sets the per attempt timeout seconds.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
perAttemptTimeoutSeconds | long | 每个尝试超时秒(类型 `long`)。The per attempt timeout seconds. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:183–185getPortForwardTimeoutSeconds
public long getPortForwardTimeoutSeconds()
获取 getPortForwardTimeoutSeconds。
Returns the port forward timeout seconds.
longio/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:187–189setPortForwardTimeoutSeconds
public void setPortForwardTimeoutSeconds(long portForwardTimeoutSeconds)
设置 setPortForwardTimeoutSeconds。
Sets the port forward timeout seconds.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
portForwardTimeoutSeconds | long | port Forward 超时秒(类型 `long`)。The port forward timeout seconds. |
io/agentscope/extensions/sandbox/kubernetes/KubernetesSandboxClientOptions.java:191–193