Class Cnf
java.lang.Object
ecmwf.common.technical.Cnf
The Class Cnf.
-
Method Summary
Modifier and TypeMethodDescriptionAt.static StringAt.static booleanAt.static doubleAt.static intAt.static longAt.static shortAt.static StringAt.At.static BooleanBoolean object at.static longdurationAt(String group, String key, long defaultValue) Duration at.static StringfileContentAt(String group, String key, String defaultContent) File content at.static PropertiesGets the added properties.static String[]getCommand(String group, String key, String... parameters) Gets the command.static StringgetContextValue(String value) Resolves placeholders in the form of "$${context:...}" from a given input string (e.g.Gets the export.static PropertiesGets the system properties.static DateGet current date with the time specified.static StringGets the value.static booleanChecks for.Values at.Returns the comma-separated values stored at (group, key).Returns the comma-separated values stored at (group, key), or the provided default values if the key is not present.listOfTimeRangesAt(String group, String key) Get the list of periods of time.static StringnotEmptyStringAt(String group, String key, String defaultValue) Not empty string at.static StringBoolean object as a String.static String[]stringListAt(String group, String key) String list at.static String[]stringListAt(String group, String key, String... defaults) Strings at.static DateTime at.static StringValues of.static StringValues of.static StringValues of.
-
Method Details
-
at
-
at
-
has
Checks for.- Parameters:
group- the group- Returns:
- true, if successful
-
at
-
valuesOf
-
valuesOf
-
valuesOf
public static String valuesOf(Map<String, String> values, UnaryOperator<String> processor, String... privateFields) Values of.- Parameters:
values- the input valuesprocessor- the processorprivateFields- the regex pattern of all private fields to process with the processor- Returns:
- the result string
-
at
-
at
-
at
-
fileContentAt
-
keysAt
-
listAt
-
listAt
-
listOfTimeRangesAt
-
stringListAt
-
stringListAt
-
at
-
booleanAt
-
stringAt
-
getCommand
-
getAddedProperties
Gets the added properties. Allow being compatible with JBoss. The signature should not be changed!- Returns:
- the added properties
-
getExport
-
getSystemProperties
Gets the system properties. Allow being compatible with JBoss. The signature should not be changed!- Returns:
- the system properties
-
at
-
at
-
getTime
-
timeAt
-
durationAt
-
notEmptyStringAt
-
getValue
-
getContextValue
Resolves placeholders in the form of "$${context:...}" from a given input string (e.g. "$${context:user.home}"). Supported formats inside the placeholder: - $${context:property.name} → resolves to System property "property.name" - $${context:someFunction()} → resolves by invoking a static method named "someFunction" - $${context:map[key]} → resolves a key lookup from a named map Nested placeholders are also resolved recursively. Unknown or malformed placeholders are preserved as-is. Example: Input: "Path: $${context:user.home}/bin" Output: "Path: /home/syi/bin" (if user.home is a system property)- Parameters:
value- the value- Returns:
- the context value
-