public class DMLConfig extends Object
Constructor and Description |
---|
DMLConfig() |
DMLConfig(DMLConfig dmlconf) |
DMLConfig(Element root) |
DMLConfig(String fileName) |
DMLConfig(String fileName,
boolean silent) |
Modifier and Type | Method and Description |
---|---|
DMLConfig |
clone() |
boolean |
getBooleanValue(String tagName) |
String |
getConfigInfo() |
static String |
getDefaultTextValue(String key) |
double |
getDoubleValue(String tagName) |
int |
getIntValue(String tagName) |
String |
getTextValue(String tagName)
Method to get string value of a configuration parameter
Handles processing of configuration parameters
|
static DMLConfig |
parseDMLConfig(String content) |
static DMLConfig |
readConfigurationFile(String configPath)
Start with the internal default settings, then merge in the
settings from any specified configuration file, if available.
|
String |
serializeDMLConfig() |
void |
set(DMLConfig dmlconf) |
void |
setTextValue(String paramName,
String paramValue)
Method to update the key value
|
public static final String DEFAULT_SYSTEMDS_CONFIG_FILEPATH
public static final String LOCAL_TMP_DIR
public static final String SCRATCH_SPACE
public static final String OPTIMIZATION_LEVEL
public static final String DEFAULT_BLOCK_SIZE
public static final String CP_PARALLEL_OPS
public static final String CP_PARALLEL_IO
public static final String COMPRESSED_LINALG
public static final String COMPRESSED_LOSSY
public static final String COMPRESSED_VALID_COMPRESSIONS
public static final String NATIVE_BLAS
public static final String NATIVE_BLAS_DIR
public static final String CODEGEN
public static final String CODEGEN_COMPILER
public static final String CODEGEN_OPTIMIZER
public static final String CODEGEN_PLANCACHE
public static final String CODEGEN_LITERALS
public static final String STATS_MAX_WRAP_LEN
public static final String AVAILABLE_GPUS
public static final String SYNCHRONIZE_GPU
public static final String EAGER_CUDA_FREE
public static final String GPU_EVICTION_POLICY
public static final String LOCAL_SPARK_NUM_THREADS
public static final String GPU_MEMORY_UTILIZATION_FACTOR
public static final String GPU_MEMORY_ALLOCATOR
public static final String FLOATING_POINT_PRECISION
public static final String PRINT_GPU_MEMORY_INFO
public static final String EVICTION_SHADOW_BUFFERSIZE
public static final int DEFAULT_FEDERATED_PORT
public static final int DEFAULT_NUMBER_OF_FEDERATED_WORKER_THREADS
public static final String DEFAULT_SHARED_DIR_PERMISSION
public DMLConfig()
public DMLConfig(String fileName) throws FileNotFoundException
FileNotFoundException
public DMLConfig(String fileName, boolean silent) throws FileNotFoundException
FileNotFoundException
public DMLConfig(Element root)
public DMLConfig(DMLConfig dmlconf)
public void set(DMLConfig dmlconf)
public String getTextValue(String tagName)
tagName
- the name of the DMLConfig parameter being retrievedpublic int getIntValue(String tagName)
public boolean getBooleanValue(String tagName)
public double getDoubleValue(String tagName)
public void setTextValue(String paramName, String paramValue)
paramName
- parameter nameparamValue
- parameter valuepublic String serializeDMLConfig()
public static DMLConfig readConfigurationFile(String configPath) throws FileNotFoundException
configPath
- User-defined path of the configuration file.FileNotFoundException
- if FileNotFoundException occurspublic String getConfigInfo()
Copyright © 2020 The Apache Software Foundation. All rights reserved.