Class TunableFactory


  • public final class TunableFactory
    extends Object
    Provides an instance of a tunable after applying changes taken from configuration file or system properties.
    Author:
    Jens Wilke
    See Also:
    TunableConstants
    • Field Detail

      • DEFAULT_TUNING_GRAALVM_FILE_NAME

        public static final String DEFAULT_TUNING_GRAALVM_FILE_NAME
        Special defaults for GraalVM. This is the only defaults file we ship at the moment. Maybe we ship different platform defaults in the future. The file name might get extended with CPU architecture (aarch / amd64), VM vendor (android, graal, ...) etc.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TunableFactory

        public TunableFactory()
    • Method Detail

      • get

        public static <T extends TunableConstants> T get​(Properties p,
                                                         Class<T> c)
        Provide tuning object with initialized information from the properties file.
        Type Parameters:
        T - type of requested tunable class
        Parameters:
        p - Properties from the execution context
        c - Tunable class
        Returns:
        Created and initialized object
      • get

        public static <T extends TunableConstants> T get​(Class<T> c)
        Provide tuning object with initialized information from properties in the class path or system properties.
        Type Parameters:
        T - type of requested tunable class
        Parameters:
        c - Tunable class
        Returns:
        Created and initialized object