Builder
public static class Builder
源码Source
io/agentscope/runtime/sandbox/manager/client/config/DockerClientConfig.java:64–89构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.client.config 包。核心成员包括 host、port、certPath、build。
A class in io.agentscope.runtime.sandbox.manager.client.config that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.client.config.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder host(String host) | 设置该配置项。 Performs the host operation. |
public Builder port(int port) | 设置该配置项。 Performs the port operation. |
public Builder certPath(String certPath) | 设置该配置项。 Performs the cert path operation. |
public DockerClientConfig build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
host
public Builder host(String host)
设置该配置项。
Performs the host operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
host | String | host(类型 `String`)。The host. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/client/config/DockerClientConfig.java:71–74port
public Builder port(int port)
设置该配置项。
Performs the port operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
port | int | port(类型 `int`)。The port. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/client/config/DockerClientConfig.java:76–79certPath
public Builder certPath(String certPath)
设置该配置项。
Performs the cert path operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
certPath | String | cert 路径(类型 `String`)。The cert path. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/client/config/DockerClientConfig.java:81–84build
public DockerClientConfig build()
构建并返回最终实例。
Creates and returns an instance.
DockerClientConfig返回DockerClientConfig。Returns docker client config.
源码Source
io/agentscope/runtime/sandbox/manager/client/config/DockerClientConfig.java:86–88