AS AgentScopeAPI 手册 / API Reference

DockerClientStarter

public class DockerClientStarter extends BaseClientStarter
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:25–105

Docker 客户端启动器,承载智能体的部署、调度与服务化运行。位于 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()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:42–44

getHost

public String getHost()

获取 getHost。

Returns the host.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:46–48

setHost

public void setHost(String host)

设置 setHost。

Sets the host.

参数Parameters
名称Name类型Type说明Description
hostStringhost(类型 `String`)。The host.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:50–52

getPort

public int getPort()

获取 getPort。

Returns the port.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:54–56

setPort

public void setPort(int port)

设置 setPort。

Sets the port.

参数Parameters
名称Name类型Type说明Description
portintport(类型 `int`)。The port.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:58–60

getCertPath

public String getCertPath()

获取 getCertPath。

Returns the cert path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:62–64

setCertPath

public void setCertPath(String certPath)

设置 setCertPath。

Sets the cert path.

参数Parameters
名称Name类型Type说明Description
certPathStringcert 路径(类型 `String`)。The cert path.
源码Source io/agentscope/runtime/sandbox/manager/client/container/docker/DockerClientStarter.java:66–68

startClient

public DockerClient startClient(PortManager portManager)

启动客户端。

Starts the client.

参数Parameters
名称Name类型Type说明Description
portManagerPortManagerport 管理器(类型 `PortManager`)。The port manager.
返回Returns DockerClient
返回DockerClient。Returns docker client.
源码Source io/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.

继承成员Inherited Members

继承自Methods inherited from BaseClientStarter
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.