Class SFClientConfigParser


  • public class SFClientConfigParser
    extends Object
    • Constructor Detail

      • SFClientConfigParser

        public SFClientConfigParser()
    • Method Detail

      • loadSFClientConfig

        public static SFClientConfig loadSFClientConfig​(String configFilePath)
                                                 throws IOException
        Construct SFClientConfig from client config file passed by user. This method searches the config file in following order: 1. configFilePath param which is read from connection URL or connection property. 2. Environment variable: SF_CLIENT_CONFIG_FILE containing full path to sf_client_config file. 3. Searches for default config file name(sf_client_config.json under the driver directory from where the driver gets loaded. 4. Searches for default config file name(sf_client_config.json) under user home directory 5. Searches for default config file name(sf_client_config.json) under tmp directory.
        Parameters:
        configFilePath - SF_CLIENT_CONFIG_FILE parameter read from connection URL or connection properties
        Returns:
        SFClientConfig
        Throws:
        IOException
      • getConfigFilePathFromJDBCJarLocation

        public static String getConfigFilePathFromJDBCJarLocation()