Package es.bsc.dataclay.util
Class Configuration
- java.lang.Object
-
- es.bsc.dataclay.util.Configuration
-
public final class Configuration extends Object
Configurations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Configuration.ConfType
Type of configuration values.static class
Configuration.Flags
Configurations enum.
-
Field Summary
Fields Modifier and Type Field Description static String
DATE_FORMAT_STR
Format for date parsing.static String
GLOBALPROPS_ENV
Environment variable where configuration file can be specified.static String
GLOBALPROPS_PATH
Defines the file where global properties can be defined.static boolean
mockTesting
Indicates if we are doing a mock test.static boolean
mockTestingCompss
Indicates if we are doing a mock test using COMPSs.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getFlagsInString()
Get the properties' flags in a string.static boolean
isDebugEnabled()
Return whether the DEBUG level in the logging is enabled.
-
-
-
Field Detail
-
GLOBALPROPS_PATH
public static final String GLOBALPROPS_PATH
Defines the file where global properties can be defined.
-
GLOBALPROPS_ENV
public static final String GLOBALPROPS_ENV
Environment variable where configuration file can be specified.- See Also:
- Constant Field Values
-
mockTesting
public static boolean mockTesting
Indicates if we are doing a mock test.
-
mockTestingCompss
public static boolean mockTestingCompss
Indicates if we are doing a mock test using COMPSs.
-
DATE_FORMAT_STR
public static final String DATE_FORMAT_STR
Format for date parsing. Can be used also in Yaml (see MockSimple).- See Also:
- Constant Field Values
-
-
Method Detail
-
getFlagsInString
public static String getFlagsInString()
Get the properties' flags in a string.- Returns:
- A string, empty if there are no flags.
-
isDebugEnabled
public static boolean isDebugEnabled()
Return whether the DEBUG level in the logging is enabled.- Returns:
- True if Log4J has debug enables.
-
-