BaseNacosProperties
public class BaseNacosProperties
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:29–218基类 Nacos 属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.nacos.properties 包。核心成员包括 getNamespace、setNamespace、getServerAddr、setServerAddr、getUsername、setUsername。
Properties for Nacos Client connecting to Nacos Server.
This class is used to configure the Nacos Server basic properties, like #serverAddr, #namespace, #username, #password and more.
The #properties is used to configure the Nacos Server advanced properties. Keys of properties are from PropertyKeyConst
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getNamespace() | 获取命名空间。 Returns the namespace. |
public void setNamespace(String namespace) | 设置命名空间。 Sets the namespace. |
public String getServerAddr() | 获取 `getServerAddr`。 Returns the server addr. |
public void setServerAddr(String serverAddr) | 设置 `setServerAddr`。 Sets the server addr. |
public String getUsername() | 获取 `getUsername`。 Returns the username. |
public void setUsername(String username) | 设置 `setUsername`。 Sets the username. |
public String getPassword() | 获取密码。 Returns the password. |
public void setPassword(String password) | 设置密码。 Sets the password. |
public String getAccessKey() | 获取访问键。 Returns the access key. |
public void setAccessKey(String accessKey) | 设置访问键。 Sets the access key. |
public String getSecretKey() | 获取密钥键。 Returns the secret key. |
public void setSecretKey(String secretKey) | 设置密钥键。 Sets the secret key. |
public Properties getProperties() | 获取属性。 Returns the properties. |
public void setProperties(Properties properties) | 设置属性。 Sets the properties. |
public Properties getExplicitNacosProperties() | 获取 `getExplicitNacosProperties`。 Build a `Properties` instance containing only the explicitly configured fields. |
public Properties getNacosProperties() | 获取 `getNacosProperties`。 Build a `Properties` instance for configuring the Nacos client. |
方法详情Method Detail
getNamespace
public String getNamespace()
获取命名空间。
Returns the namespace.
Stringio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:112–114setNamespace
public void setNamespace(String namespace)
设置命名空间。
Sets the namespace.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
namespace | String | 命名空间(类型 `String`)。The namespace. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:116–118getServerAddr
public String getServerAddr()
获取 getServerAddr。
Returns the server addr.
Stringio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:120–122setServerAddr
public void setServerAddr(String serverAddr)
设置 setServerAddr。
Sets the server addr.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverAddr | String | 服务端 Addr(类型 `String`)。The server addr. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:124–126getUsername
public String getUsername()
获取 getUsername。
Returns the username.
Stringio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:128–130setUsername
public void setUsername(String username)
设置 setUsername。
Sets the username.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
username | String | username(类型 `String`)。The username. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:132–134getPassword
public String getPassword()
获取密码。
Returns the password.
Stringio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:136–138setPassword
public void setPassword(String password)
设置密码。
Sets the password.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
password | String | 密码(类型 `String`)。The password. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:140–142getAccessKey
public String getAccessKey()
获取访问键。
Returns the access key.
Stringio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:144–146setAccessKey
public void setAccessKey(String accessKey)
设置访问键。
Sets the access key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
accessKey | String | 访问键(类型 `String`)。The access key. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:148–150getSecretKey
public String getSecretKey()
获取密钥键。
Returns the secret key.
Stringio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:152–154setSecretKey
public void setSecretKey(String secretKey)
设置密钥键。
Sets the secret key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
secretKey | String | 密钥键(类型 `String`)。The secret key. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:156–158getProperties
public Properties getProperties()
获取属性。
Returns the properties.
Propertiesio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:160–162setProperties
public void setProperties(Properties properties)
设置属性。
Sets the properties.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
properties | Properties | 属性(类型 `Properties`)。The properties. |
io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:164–166getExplicitNacosProperties
public Properties getExplicitNacosProperties()
获取 getExplicitNacosProperties。
Build a Properties instance containing only the explicitly configured fields.
Propertiesio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:177–201getNacosProperties
public Properties getNacosProperties()
获取 getNacosProperties。
Build a Properties instance for configuring the Nacos client.
Propertiesio/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:212–217