Class NacosConfigProperties

java.lang.Object
com.alibaba.cloud.nacos.NacosConfigProperties
Direct Known Subclasses:
NacosConfigDataLoadProperties

public class NacosConfigProperties extends Object
Nacos properties.
Author:
leijuan, xiaojing, pbting, lyuzb
  • Field Details

  • Constructor Details

    • NacosConfigProperties

      public NacosConfigProperties()
  • Method Details

    • init

      @PostConstruct public void init()
    • getServerAddr

      public String getServerAddr()
    • setServerAddr

      public void setServerAddr(String serverAddr)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getFileExtension

      public String getFileExtension()
    • setFileExtension

      public void setFileExtension(String fileExtension)
    • getGroup

      public String getGroup()
    • setGroup

      public void setGroup(String group)
    • getTimeout

      public int getTimeout()
    • setTimeout

      public void setTimeout(int timeout)
    • getMaxRetry

      public String getMaxRetry()
    • setMaxRetry

      public void setMaxRetry(String maxRetry)
    • getConfigLongPollTimeout

      public String getConfigLongPollTimeout()
    • setConfigLongPollTimeout

      public void setConfigLongPollTimeout(String configLongPollTimeout)
    • getConfigRetryTime

      public String getConfigRetryTime()
    • setConfigRetryTime

      public void setConfigRetryTime(String configRetryTime)
    • getEnableRemoteSyncConfig

      public Boolean getEnableRemoteSyncConfig()
    • setEnableRemoteSyncConfig

      public void setEnableRemoteSyncConfig(Boolean enableRemoteSyncConfig)
    • getEndpoint

      public String getEndpoint()
    • setEndpoint

      public void setEndpoint(String endpoint)
    • getNamespace

      public String getNamespace()
    • setNamespace

      public void setNamespace(String namespace)
    • getAccessKey

      public String getAccessKey()
    • setAccessKey

      public void setAccessKey(String accessKey)
    • getSecretKey

      public String getSecretKey()
    • setSecretKey

      public void setSecretKey(String secretKey)
    • getRamRoleName

      public String getRamRoleName()
    • setRamRoleName

      public void setRamRoleName(String ramRoleName)
    • getEncode

      public String getEncode()
    • setEncode

      public void setEncode(String encode)
    • getContextPath

      public String getContextPath()
    • setContextPath

      public void setContextPath(String contextPath)
    • getClusterName

      public String getClusterName()
    • setClusterName

      public void setClusterName(String clusterName)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getEnvironment

      public org.springframework.core.env.Environment getEnvironment()
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
    • getSharedConfigs

      public List<NacosConfigProperties.Config> getSharedConfigs()
    • setSharedConfigs

      public void setSharedConfigs(List<NacosConfigProperties.Config> sharedConfigs)
    • getExtensionConfigs

      public List<NacosConfigProperties.Config> getExtensionConfigs()
    • setExtensionConfigs

      public void setExtensionConfigs(List<NacosConfigProperties.Config> extensionConfigs)
    • isRefreshEnabled

      public boolean isRefreshEnabled()
    • setRefreshEnabled

      public void setRefreshEnabled(boolean refreshEnabled)
    • getSharedDataids

      @Deprecated @DeprecatedConfigurationProperty(reason="use spring.config.import instead") public String getSharedDataids()
      Deprecated.
      recommend to use sharedConfigs .
      Returns:
      string
    • setSharedDataids

      @Deprecated public void setSharedDataids(String sharedDataids)
      Deprecated.
      recommend to use sharedConfigs and not use it at the same time .
      Parameters:
      sharedDataids - the dataids for configurable multiple shared configurations , multiple separated by commas .
    • getRefreshableDataids

      @Deprecated public String 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 public void setRefreshableDataids(String refreshableDataids)
      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 use extensionConfigs and not use it at the same time .
      Returns:
      extensionConfigs
    • setExtConfig

      @Deprecated public void setExtConfig(List<NacosConfigProperties.Config> extConfig)
      Deprecated.
    • configServiceInstance

      @Deprecated public com.alibaba.nacos.api.config.ConfigService configServiceInstance()
      Deprecated.
      Returns:
      ConfigService
    • getConfigServiceProperties

      @Deprecated public Properties getConfigServiceProperties()
      Deprecated.
      Returns:
      ConfigServiceProperties
    • assembleConfigServiceProperties

      public Properties 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

      protected void enrichNacosConfigProperties(Properties nacosConfigProperties)
    • resolveKey

      protected String resolveKey(String key)
    • toString

      public String toString()
      Overrides:
      toString in class Object