AS AgentScopeAPI 手册 / API Reference

DeployProperties

public class DeployProperties
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:23–67

用于部署的服务端配置。位于 io.agentscope.runtime.autoconfigure 包。核心成员包括 getServerPort、setServerPort、getServerAddress、setServerAddress、DeployProperties。

Server configuration for deployment

构造器摘要Constructor Summary

构造器Constructor说明Description
public DeployProperties()
初始化 `DeployProperties` 实例。
Creates a new instance.
public DeployProperties(int port)
初始化 `DeployProperties` 实例。
Creates a new instance.
public DeployProperties(int port, String host, String endpointName)
初始化 `DeployProperties` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public int getServerPort()
获取 `getServerPort`。
Returns the server port.
public void setServerPort(int serverPort)
设置 `setServerPort`。
Sets the server port.
public String getServerAddress()
获取 `getServerAddress`。
Returns the server address.
public void setServerAddress(String serverAddress)
设置 `setServerAddress`。
Sets the server address.

构造器详情Constructor Detail

DeployProperties

public DeployProperties()

初始化 DeployProperties 实例。

Creates a new instance.

源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:32

DeployProperties

public DeployProperties(int port)

初始化 DeployProperties 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
portintport(类型 `int`)。The port.
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:34–36

DeployProperties

public DeployProperties(int port, String host, String endpointName)

初始化 DeployProperties 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
portintport(类型 `int`)。The port.
hostStringhost(类型 `String`)。The host.
endpointNameString端点名称(类型 `String`)。The endpoint name.
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:38–42

方法详情Method Detail

getServerPort

public int getServerPort()

获取 getServerPort。

Returns the server port.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:44–46

setServerPort

public void setServerPort(int serverPort)

设置 setServerPort。

Sets the server port.

参数Parameters
名称Name类型Type说明Description
serverPortint服务端 Port(类型 `int`)。The server port.
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:48–50

getServerAddress

public String getServerAddress()

获取 getServerAddress。

Returns the server address.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:52–54

setServerAddress

public void setServerAddress(String serverAddress)

设置 setServerAddress。

Sets the server address.

参数Parameters
名称Name类型Type说明Description
serverAddressString服务端 Address(类型 `String`)。The server address.
源码Source io/agentscope/runtime/autoconfigure/DeployProperties.java:56–58
基于官方固定版本源码静态生成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.