AS AgentScopeAPI 手册 / API Reference

BaseNacosProperties

public class BaseNacosProperties
源码Source 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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:112–114

setNamespace

public void setNamespace(String namespace)

设置命名空间。

Sets the namespace.

参数Parameters
名称Name类型Type说明Description
namespaceString命名空间(类型 `String`)。The namespace.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:116–118

getServerAddr

public String getServerAddr()

获取 getServerAddr。

Returns the server addr.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:120–122

setServerAddr

public void setServerAddr(String serverAddr)

设置 setServerAddr。

Sets the server addr.

参数Parameters
名称Name类型Type说明Description
serverAddrString服务端 Addr(类型 `String`)。The server addr.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:124–126

getUsername

public String getUsername()

获取 getUsername。

Returns the username.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:128–130

setUsername

public void setUsername(String username)

设置 setUsername。

Sets the username.

参数Parameters
名称Name类型Type说明Description
usernameStringusername(类型 `String`)。The username.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:132–134

getPassword

public String getPassword()

获取密码。

Returns the password.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:136–138

setPassword

public void setPassword(String password)

设置密码。

Sets the password.

参数Parameters
名称Name类型Type说明Description
passwordString密码(类型 `String`)。The password.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:140–142

getAccessKey

public String getAccessKey()

获取访问键。

Returns the access key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:144–146

setAccessKey

public void setAccessKey(String accessKey)

设置访问键。

Sets the access key.

参数Parameters
名称Name类型Type说明Description
accessKeyString访问键(类型 `String`)。The access key.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:148–150

getSecretKey

public String getSecretKey()

获取密钥键。

Returns the secret key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:152–154

setSecretKey

public void setSecretKey(String secretKey)

设置密钥键。

Sets the secret key.

参数Parameters
名称Name类型Type说明Description
secretKeyString密钥键(类型 `String`)。The secret key.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:156–158

getProperties

public Properties getProperties()

获取属性。

Returns the properties.

返回Returns Properties
返回属性。Returns properties.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:160–162

setProperties

public void setProperties(Properties properties)

设置属性。

Sets the properties.

参数Parameters
名称Name类型Type说明Description
propertiesProperties属性(类型 `Properties`)。The properties.
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:164–166

getExplicitNacosProperties

public Properties getExplicitNacosProperties()

获取 getExplicitNacosProperties。

Build a Properties instance containing only the explicitly configured fields.

返回Returns Properties
返回属性。a `Properties` instance containing only explicitly set Nacos configuration
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:177–201

getNacosProperties

public Properties getNacosProperties()

获取 getNacosProperties。

Build a Properties instance for configuring the Nacos client.

返回Returns Properties
返回属性。a `Properties` instance containing all resolved Nacos configuration
源码Source io/agentscope/spring/boot/nacos/properties/BaseNacosProperties.java:212–217
基于官方固定版本源码静态生成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.