NacosServerProperties
@ConfigurationProperties(prefix = Constants.NACOS_PREFIX) public class NacosServerProperties implements EnvironmentAware
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:45–208Nacos 服务端属性,支持智能体之间的发现、委派与协作。位于 io.agentscope.extensions.a2a.nacos.registry.properties 包,实现 EnvironmentAware。核心成员包括 getNamespace、setNamespace、getServerAddr、setServerAddr、getUsername、setUsername。
Nacos server properties for A2A registry.
方法摘要Method Summary
方法详情Method Detail
getNamespace
public String getNamespace()
获取命名空间。
Returns the namespace.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:69–71setNamespace
public void setNamespace(String namespace)
设置命名空间。
Sets the namespace.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
namespace | String | 命名空间(类型 `String`)。The namespace. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:73–75getServerAddr
public String getServerAddr()
获取 getServerAddr。
Returns the server addr.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:77–79setServerAddr
public void setServerAddr(String serverAddr)
设置 setServerAddr。
Sets the server addr.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverAddr | String | 服务端 Addr(类型 `String`)。The server addr. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:81–83getUsername
public String getUsername()
获取 getUsername。
Returns the username.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:85–87setUsername
public void setUsername(String username)
设置 setUsername。
Sets the username.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
username | String | username(类型 `String`)。The username. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:89–91getPassword
public String getPassword()
获取密码。
Returns the password.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:93–95setPassword
public void setPassword(String password)
设置密码。
Sets the password.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
password | String | 密码(类型 `String`)。The password. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:97–99getAccessKey
public String getAccessKey()
获取访问键。
Returns the access key.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:101–103setAccessKey
public void setAccessKey(String accessKey)
设置访问键。
Sets the access key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
accessKey | String | 访问键(类型 `String`)。The access key. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:105–107getSecretKey
public String getSecretKey()
获取密钥键。
Returns the secret key.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:109–111setSecretKey
public void setSecretKey(String secretKey)
设置密钥键。
Sets the secret key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
secretKey | String | 密钥键(类型 `String`)。The secret key. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:113–115getEndpoint
public String getEndpoint()
获取端点。
Returns the endpoint.
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:117–119setEndpoint
public void setEndpoint(String endpoint)
设置端点。
Sets the endpoint.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
endpoint | String | 端点地址(类型 `String`)。The endpoint. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:121–123getNacosProperties
public Properties getNacosProperties()
获取 getNacosProperties。
Returns the nacos properties.
Propertiesio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:125–149enrichNacosConfigProperties
protected void enrichNacosConfigProperties(Properties nacosConfigProperties)
设置该参数。
Performs the enrich nacos config properties operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
nacosConfigProperties | Properties | Nacos 配置属性(类型 `Properties`)。The nacos config properties. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:151–158resolveKey
protected String resolveKey(String key)
解析键。
Performs the resolve key operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
key | String | 键(类型 `String`)。The key. |
Stringio/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:160–168setEnvironment
public void setEnvironment(Environment environment)
设置环境。
Sets the environment.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
environment | Environment | 环境(类型 `Environment`)。The environment. |
io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:203–206