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 StringdebugString(DatabricksConfig cfg)static voidfixHostIfNeeded(DatabricksConfig cfg)static DatabricksConfiggetDefault()static booleanisAnyAuthConfigured(DatabricksConfig cfg)static booleanisNullOrEmpty(Object target)static DatabricksExceptionmakeNicerError(String message, Exception e, DatabricksConfig cfg)static DatabricksExceptionmakeNicerError(String message, Exception e, Integer statusCode, DatabricksConfig cfg)static DatabricksConfigresolve(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
-
-