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:32DeployProperties
public DeployProperties(int port)
初始化 DeployProperties 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
port | int | port(类型 `int`)。The port. |
源码Source
io/agentscope/runtime/autoconfigure/DeployProperties.java:34–36DeployProperties
public DeployProperties(int port, String host, String endpointName)
初始化 DeployProperties 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
port | int | port(类型 `int`)。The port. |
host | String | host(类型 `String`)。The host. |
endpointName | String | 端点名称(类型 `String`)。The endpoint name. |
源码Source
io/agentscope/runtime/autoconfigure/DeployProperties.java:38–42方法详情Method Detail
getServerPort
public int getServerPort()
获取 getServerPort。
Returns the server port.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/runtime/autoconfigure/DeployProperties.java:44–46setServerPort
public void setServerPort(int serverPort)
设置 setServerPort。
Sets the server port.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverPort | int | 服务端 Port(类型 `int`)。The server port. |
源码Source
io/agentscope/runtime/autoconfigure/DeployProperties.java:48–50getServerAddress
public String getServerAddress()
获取 getServerAddress。
Returns the server address.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/autoconfigure/DeployProperties.java:52–54setServerAddress
public void setServerAddress(String serverAddress)
设置 setServerAddress。
Sets the server address.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverAddress | String | 服务端 Address(类型 `String`)。The server address. |
源码Source
io/agentscope/runtime/autoconfigure/DeployProperties.java:56–58