Package org.apache.flink.fs.gs.utils
Interface ConfigUtils.ConfigContext
- Enclosing class:
- ConfigUtils
public static interface ConfigUtils.ConfigContext
Interface that provides context-specific config helper functions, factored out to support
unit testing. *
-
Method Summary
Modifier and TypeMethodDescriptionReturns a named environment variable.org.apache.hadoop.conf.ConfigurationloadHadoopConfigFromDir(String configDir) Loads the Hadoop configuration from a directory.com.google.auth.oauth2.GoogleCredentialsloadStorageCredentialsFromFile(String credentialsPath) Loads the Google credentials from a file.
-
Method Details
-
getenv
Returns a named environment variable.- Parameters:
name- Name of variable- Returns:
- Value of variable
-
loadHadoopConfigFromDir
Loads the Hadoop configuration from a directory.- Parameters:
configDir- The Hadoop config directory.- Returns:
- The Hadoop configuration.
-
loadStorageCredentialsFromFile
Loads the Google credentials from a file.- Parameters:
credentialsPath- The path of the credentials file.- Returns:
- The Google credentials.
-