Class Cnf

java.lang.Object
ecmwf.common.technical.Cnf

public final class Cnf extends Object
The Class Cnf.
  • Method Details

    • at

      public static long at(String group, String key, long defaultValue)
      At.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the long
    • has

      public static boolean has(String group)
      Checks for.
      Parameters:
      group - the group
      Returns:
      true, if successful
    • at

      public static Map<String,String> at(String group)
      At.
      Parameters:
      group - the group
      Returns:
      the hashtable
    • valuesOf

      public static String valuesOf(String group)
      Values of.
      Parameters:
      group - the group
      Returns:
      the string
    • valuesOf

      public static String valuesOf(Map<String,String> values)
      Values of.
      Parameters:
      values - the values
      Returns:
      the string
    • valuesOf

      public static String valuesOf(Map<String,String> values, UnaryOperator<String> processor, String... privateFields)
      Values of.
      Parameters:
      values - the input values
      processor - the processor
      privateFields - the regex pattern of all private fields to process with the processor
      Returns:
      the result string
    • at

      public static Map<String,String> at(String group, Map<String,String> defaultValue)
      At.
      Parameters:
      group - the group
      defaultValue - the default value
      Returns:
      the hashtable
    • at

      public static String at(String group, String key)
      At.
      Parameters:
      group - the group
      key - the key
      Returns:
      the string
    • at

      public static String at(String group, String key, String defaultValue)
      At.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the string
    • fileContentAt

      public static String fileContentAt(String group, String key, String defaultContent)
      File content at.
      Parameters:
      group - the group
      key - the key
      defaultContent - the default content
      Returns:
      the string
    • keysAt

      public static List<String> keysAt(String group)
      Values at.
      Parameters:
      group - the group
      Returns:
      the hashtable
    • listAt

      public static List<String> listAt(String group, String key)
      List at.
      Parameters:
      group - the group
      key - the key
      Returns:
      the vector
    • listOfTimeRangesAt

      public static List<TimeRange> listOfTimeRangesAt(String group, String key)
      Get the list of periods of time.
      Parameters:
      group - the group
      key - the key
      Returns:
      the vector
    • stringListAt

      public static String[] stringListAt(String group, String key)
      String list at. If not found return an empty string.
      Parameters:
      group - the group
      key - the key
      Returns:
      the string[]
    • stringListAt

      public static String[] stringListAt(String group, String key, String... defaults)
      Strings at.
      Parameters:
      group - the group
      key - the key
      defaults - the defaults
      Returns:
      the string[]
    • at

      public static boolean at(String group, String key, boolean defaultValue)
      At.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      true, if successful
    • booleanAt

      public static Boolean booleanAt(String group, String key, Boolean defaultValue)
      Boolean object at.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the boolean
    • getCommand

      public static String[] getCommand(String group, String key, String... parameters)
      Gets the command.
      Parameters:
      group - the group
      key - the key
      parameters - the parameters
      Returns:
      the command
    • getAddedProperties

      public static Properties getAddedProperties()
      Gets the added properties. Allow being compatible with JBoss. The signature should not be changed!
      Returns:
      the added properties
    • getExport

      public static Hashtable<String,Hashtable<String,String>> getExport()
      Gets the export. Allow being compatible with JBoss. The signature should not be changed!
      Returns:
      the export
    • getSystemProperties

      public static Properties getSystemProperties()
      Gets the system properties. Allow being compatible with JBoss. The signature should not be changed!
      Returns:
      the system properties
    • at

      public static int at(String group, String key, int defaultValue)
      At.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the int
    • at

      public static short at(String group, String key, short defaultValue)
      At.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the short
    • getTime

      public static Date getTime(String time, Date defaultValue)
      Get current date with the time specified.
      Parameters:
      time - the time
      defaultValue - the default value
      Returns:
      the date
    • timeAt

      public static Date timeAt(String group, String key, Date defaultValue)
      Time at.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the date
    • durationAt

      public static long durationAt(String group, String key, long defaultValue)
      Duration at.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the long
    • notEmptyStringAt

      public static String notEmptyStringAt(String group, String key, String defaultValue)
      Not empty string at.
      Parameters:
      group - the group
      key - the key
      defaultValue - the default value
      Returns:
      the string
    • getValue

      public static String getValue(String value)
      Gets the value.
      Parameters:
      value - the value
      Returns:
      the value