AS AgentScopeAPI 手册 / API Reference

NacosServerProperties

@ConfigurationProperties(prefix = Constants.NACOS_PREFIX) public class NacosServerProperties implements EnvironmentAware
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:45–208

Nacos 服务端属性,支持智能体之间的发现、委派与协作。位于 io.agentscope.extensions.a2a.nacos.registry.properties 包,实现 EnvironmentAware。核心成员包括 getNamespace、setNamespace、getServerAddr、setServerAddr、getUsername、setUsername。

Nacos server properties for A2A registry.

方法摘要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 String getEndpoint()
获取端点。
Returns the endpoint.
public void setEndpoint(String endpoint)
设置端点。
Sets the endpoint.
public Properties getNacosProperties()
获取 `getNacosProperties`。
Returns the nacos properties.
protected void enrichNacosConfigProperties(Properties nacosConfigProperties)
设置该参数。
Performs the enrich nacos config properties operation.
protected String resolveKey(String key)
解析键。
Performs the resolve key operation.
public void setEnvironment(Environment environment)
设置环境。
Sets the environment.

方法详情Method Detail

getNamespace

public String getNamespace()

获取命名空间。

Returns the namespace.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:69–71

setNamespace

public void setNamespace(String namespace)

设置命名空间。

Sets the namespace.

参数Parameters
名称Name类型Type说明Description
namespaceString命名空间(类型 `String`)。The namespace.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:73–75

getServerAddr

public String getServerAddr()

获取 getServerAddr。

Returns the server addr.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:77–79

setServerAddr

public void setServerAddr(String serverAddr)

设置 setServerAddr。

Sets the server addr.

参数Parameters
名称Name类型Type说明Description
serverAddrString服务端 Addr(类型 `String`)。The server addr.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:81–83

getUsername

public String getUsername()

获取 getUsername。

Returns the username.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:85–87

setUsername

public void setUsername(String username)

设置 setUsername。

Sets the username.

参数Parameters
名称Name类型Type说明Description
usernameStringusername(类型 `String`)。The username.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:89–91

getPassword

public String getPassword()

获取密码。

Returns the password.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:93–95

setPassword

public void setPassword(String password)

设置密码。

Sets the password.

参数Parameters
名称Name类型Type说明Description
passwordString密码(类型 `String`)。The password.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:97–99

getAccessKey

public String getAccessKey()

获取访问键。

Returns the access key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:101–103

setAccessKey

public void setAccessKey(String accessKey)

设置访问键。

Sets the access key.

参数Parameters
名称Name类型Type说明Description
accessKeyString访问键(类型 `String`)。The access key.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:105–107

getSecretKey

public String getSecretKey()

获取密钥键。

Returns the secret key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:109–111

setSecretKey

public void setSecretKey(String secretKey)

设置密钥键。

Sets the secret key.

参数Parameters
名称Name类型Type说明Description
secretKeyString密钥键(类型 `String`)。The secret key.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:113–115

getEndpoint

public String getEndpoint()

获取端点。

Returns the endpoint.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:117–119

setEndpoint

public void setEndpoint(String endpoint)

设置端点。

Sets the endpoint.

参数Parameters
名称Name类型Type说明Description
endpointString端点地址(类型 `String`)。The endpoint.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:121–123

getNacosProperties

public Properties getNacosProperties()

获取 getNacosProperties。

Returns the nacos properties.

返回Returns Properties
返回属性。Returns properties.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:125–149

enrichNacosConfigProperties

protected void enrichNacosConfigProperties(Properties nacosConfigProperties)

设置该参数。

Performs the enrich nacos config properties operation.

参数Parameters
名称Name类型Type说明Description
nacosConfigPropertiesPropertiesNacos 配置属性(类型 `Properties`)。The nacos config properties.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:151–158

resolveKey

protected String resolveKey(String key)

解析键。

Performs the resolve key operation.

参数Parameters
名称Name类型Type说明Description
keyString键(类型 `String`)。The key.
返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:160–168

setEnvironment

public void setEnvironment(Environment environment)

设置环境。

Sets the environment.

参数Parameters
名称Name类型Type说明Description
environmentEnvironment环境(类型 `Environment`)。The environment.
源码Source io/agentscope/extensions/a2a/nacos/registry/properties/NacosServerProperties.java:203–206
基于官方固定版本源码静态生成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.