Package com.alibaba.cloud.nacos
Class NacosConfigProperties
java.lang.Object
com.alibaba.cloud.nacos.NacosConfigProperties
- Direct Known Subclasses:
NacosConfigDataLoadProperties
Nacos properties.
- Author:
- leijuan, xiaojing, pbting, lyuzb
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble properties for configService.com.alibaba.nacos.api.config.ConfigServiceDeprecated.protected voidenrichNacosConfigProperties(Properties nacosConfigProperties) Deprecated.org.springframework.core.env.EnvironmentDeprecated.getGroup()getName()Deprecated.Deprecated.intvoidinit()booleanprotected StringresolveKey(String key) voidsetAccessKey(String accessKey) voidsetClusterName(String clusterName) voidsetConfigLongPollTimeout(String configLongPollTimeout) voidsetConfigRetryTime(String configRetryTime) voidsetContextPath(String contextPath) voidsetEnableRemoteSyncConfig(Boolean enableRemoteSyncConfig) voidvoidsetEndpoint(String endpoint) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetExtConfig(List<NacosConfigProperties.Config> extConfig) Deprecated.voidsetExtensionConfigs(List<NacosConfigProperties.Config> extensionConfigs) voidsetFileExtension(String fileExtension) voidvoidsetMaxRetry(String maxRetry) voidvoidsetNamespace(String namespace) voidsetPassword(String password) voidvoidsetRamRoleName(String ramRoleName) voidsetRefreshableDataids(String refreshableDataids) Deprecated.voidsetRefreshEnabled(boolean refreshEnabled) voidsetSecretKey(String secretKey) voidsetServerAddr(String serverAddr) voidsetSharedConfigs(List<NacosConfigProperties.Config> sharedConfigs) voidsetSharedDataids(String sharedDataids) Deprecated.voidsetTimeout(int timeout) voidsetUsername(String username) toString()
-
Field Details
-
COMMAS
COMMAS , .- See Also:
-
SEPARATOR
SEPARATOR , .- See Also:
-
DEFAULT_NAMESPACE
Nacos default namespace .- See Also:
-
DEFAULT_ADDRESS
Nacos default server and port.- See Also:
-
-
Constructor Details
-
NacosConfigProperties
public NacosConfigProperties()
-
-
Method Details
-
init
@PostConstruct public void init() -
getServerAddr
-
setServerAddr
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getPrefix
-
setPrefix
-
getFileExtension
-
setFileExtension
-
getGroup
-
setGroup
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) -
getMaxRetry
-
setMaxRetry
-
getConfigLongPollTimeout
-
setConfigLongPollTimeout
-
getConfigRetryTime
-
setConfigRetryTime
-
getEnableRemoteSyncConfig
-
setEnableRemoteSyncConfig
-
getEndpoint
-
setEndpoint
-
getNamespace
-
setNamespace
-
getAccessKey
-
setAccessKey
-
getSecretKey
-
setSecretKey
-
getRamRoleName
-
setRamRoleName
-
getEncode
-
setEncode
-
getContextPath
-
setContextPath
-
getClusterName
-
setClusterName
-
getName
-
setName
-
getEnvironment
public org.springframework.core.env.Environment getEnvironment() -
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) -
getExtensionConfigs
-
setExtensionConfigs
-
isRefreshEnabled
public boolean isRefreshEnabled() -
setRefreshEnabled
public void setRefreshEnabled(boolean refreshEnabled) -
getRefreshableDataids
Deprecated.Not providing support,the need to refresh is specified by the respective refresh configuration and not use it at the same time .- Returns:
- string
-
setRefreshableDataids
Deprecated.Not providing support,the need to refresh is specified by the respective refresh configuration and not use it at the same time .- Parameters:
refreshableDataids- refreshable dataids ,multiple separated by commas .
-
getExtConfig
@Deprecated @DeprecatedConfigurationProperty(reason="use spring.config.import instead") public List<NacosConfigProperties.Config> getExtConfig()Deprecated.recommend to useextensionConfigsand not use it at the same time .- Returns:
- extensionConfigs
-
setExtConfig
Deprecated. -
configServiceInstance
Deprecated.recommend to useNacosConfigManager.getConfigService().- Returns:
- ConfigService
-
getConfigServiceProperties
Deprecated.recommend to useassembleConfigServiceProperties().- Returns:
- ConfigServiceProperties
-
assembleConfigServiceProperties
assemble properties for configService. (cause by rename : Remove the interference of auto prompts when writing,because autocue is based on get method.- Returns:
- properties
-
enrichNacosConfigProperties
-
resolveKey
-
toString
-