Class ConfigLoader


  • public class ConfigLoader
    extends java.lang.Object
    This class will load a Configuration from a property file, then override parameters based on environment variables.
    • Field Detail

      • STORAGE_DATACENTER

        public static final java.lang.String STORAGE_DATACENTER
        See Also:
        Constant Field Values
      • STORAGE_HOSTNAME

        public static final java.lang.String STORAGE_HOSTNAME
        See Also:
        Constant Field Values
      • STORAGE_USERNAME

        public static final java.lang.String STORAGE_USERNAME
        See Also:
        Constant Field Values
      • STORAGE_PASSWORD

        public static final java.lang.String STORAGE_PASSWORD
        See Also:
        Constant Field Values
      • INDEX_SEARCH_HOSTNAME

        public static final java.lang.String INDEX_SEARCH_HOSTNAME
        See Also:
        Constant Field Values
      • INDEX_SEARCH_PORT

        public static final java.lang.String INDEX_SEARCH_PORT
        See Also:
        Constant Field Values
      • STORAGE_DATACENTER_ENV

        public static final java.lang.String STORAGE_DATACENTER_ENV
        See Also:
        Constant Field Values
      • STORAGE_HOSTNAME_ENV

        public static final java.lang.String STORAGE_HOSTNAME_ENV
      • STORAGE_PORT_ENV

        public static final java.lang.String STORAGE_PORT_ENV
      • STORAGE_USERNAME_ENV

        public static final java.lang.String STORAGE_USERNAME_ENV
      • STORAGE_PASSWORD_ENV

        public static final java.lang.String STORAGE_PASSWORD_ENV
      • INDEX_SEARCH_HOSTNAME_ENV

        public static final java.lang.String INDEX_SEARCH_HOSTNAME_ENV
      • INDEX_SEARCH_PORT_ENV

        public static final java.lang.String INDEX_SEARCH_PORT_ENV
    • Constructor Detail

      • ConfigLoader

        public ConfigLoader()
    • Method Detail

      • load

        public static final org.apache.commons.configuration2.Configuration load​(java.lang.String propFileName)
                                                                          throws org.apache.commons.configuration2.ex.ConfigurationException
        Throws:
        org.apache.commons.configuration2.ex.ConfigurationException