Package com.databricks.sdk.core
Class ConfigLoader
- java.lang.Object
-
- com.databricks.sdk.core.ConfigLoader
-
public class ConfigLoader extends Object
-
-
Constructor Summary
Constructors Constructor Description ConfigLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
debugString(DatabricksConfig cfg)
static void
fixHostIfNeeded(DatabricksConfig cfg)
static DatabricksConfig
getDefault()
static boolean
isAnyAuthConfigured(DatabricksConfig cfg)
static boolean
isNullOrEmpty(Object target)
static DatabricksException
makeNicerError(String message, Exception e, DatabricksConfig cfg)
static DatabricksException
makeNicerError(String message, Exception e, Integer statusCode, DatabricksConfig cfg)
static DatabricksConfig
resolve(DatabricksConfig cfg)
-
-
-
Method Detail
-
resolve
public static DatabricksConfig resolve(DatabricksConfig cfg) throws DatabricksException
- Throws:
DatabricksException
-
fixHostIfNeeded
public static void fixHostIfNeeded(DatabricksConfig cfg)
-
makeNicerError
public static DatabricksException makeNicerError(String message, Exception e, DatabricksConfig cfg)
-
makeNicerError
public static DatabricksException makeNicerError(String message, Exception e, Integer statusCode, DatabricksConfig cfg)
-
debugString
public static String debugString(DatabricksConfig cfg)
-
getDefault
public static DatabricksConfig getDefault()
-
isNullOrEmpty
public static boolean isNullOrEmpty(Object target)
-
isAnyAuthConfigured
public static boolean isAnyAuthConfigured(DatabricksConfig cfg) throws IllegalAccessException
- Throws:
IllegalAccessException
-
-