DockerClientStarter
public class DockerClientStarter extends BaseClientStarter
io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:25–105Docker 客户端启动器,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.sandbox.manager.client.container.docker 包,继承自 BaseClientStarter。核心成员包括 builder、getHost、setHost、getPort、setPort、getCertPath。
A class in io.agentscope.runtime.sandbox.manager.client.container.docker that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.client.container.docker. Extends BaseClientStarter.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.runtime.sandbox.manager.client.container.docker that deploys, schedules and serves agents. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static Builder builder()static | 返回构建器实例。 Returns the builder. |
public String getHost() | 获取 `getHost`。 Returns the host. |
public void setHost(String host) | 设置 `setHost`。 Sets the host. |
public int getPort() | 获取 `getPort`。 Returns the port. |
public void setPort(int port) | 设置 `setPort`。 Sets the port. |
public String getCertPath() | 获取 `getCertPath`。 Returns the cert path. |
public void setCertPath(String certPath) | 设置 `setCertPath`。 Sets the cert path. |
public DockerClient startClient(PortManager portManager) | 启动客户端。 Starts the client. |
方法详情Method Detail
builder
public static Builder builder()
返回构建器实例。
Returns the builder.
Builderio/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:42–44getHost
public String getHost()
获取 getHost。
Returns the host.
Stringio/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:46–48setHost
public void setHost(String host)
设置 setHost。
Sets the host.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
host | String | host(类型 `String`)。The host. |
io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:50–52getPort
public int getPort()
获取 getPort。
Returns the port.
intio/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:54–56setPort
public void setPort(int port)
设置 setPort。
Sets the port.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
port | int | port(类型 `int`)。The port. |
io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:58–60getCertPath
public String getCertPath()
获取 getCertPath。
Returns the cert path.
Stringio/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:62–64setCertPath
public void setCertPath(String certPath)
设置 setCertPath。
Sets the cert path.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
certPath | String | cert 路径(类型 `String`)。The cert path. |
io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:66–68startClient
public DockerClient startClient(PortManager portManager)
启动客户端。
Starts the client.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
portManager | PortManager | port 管理器(类型 `PortManager`)。The port manager. |
DockerClientio/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:70–76嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.client.container.docker 包。核心成员包括 host、port、certPath、build。
A class in io.agentscope.runtime.sandbox.manager.client.container.docker that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.client.container.docker.