Enum Class OGlobalConfiguration

java.lang.Object
java.lang.Enum<OGlobalConfiguration>
com.orientechnologies.orient.core.config.OGlobalConfiguration
All Implemented Interfaces:
Serializable, Comparable<OGlobalConfiguration>, Constable

public enum OGlobalConfiguration extends Enum<OGlobalConfiguration>
Keeps all configuration settings. At startup assigns the configuration values by reading system properties.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Enum Constant Details

  • Method Details

    • values

      public static OGlobalConfiguration[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OGlobalConfiguration valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • dumpConfiguration

      public static void dumpConfiguration(PrintStream out)
    • findByKey

      public static OGlobalConfiguration findByKey(String iKey)
      Find the OGlobalConfiguration instance by the key. Key is case insensitive.
      Parameters:
      iKey - Key to find. It's case insensitive.
      Returns:
      OGlobalConfiguration instance if found, otherwise null
    • setConfiguration

      public static void setConfiguration(Map<String,Object> iConfig)
      Changes the configuration values in one shot by passing a Map of values. Keys can be the Java ENUM names or the string representation of configuration values
    • getEnvKey

      public static String getEnvKey(OGlobalConfiguration config)
    • getValue

      public <T> T getValue()
    • isChanged

      public boolean isChanged()
      Returns:
      true if configuration was changed from default value and false otherwise.
    • setValue

      public void setValue(Object iValue)
    • getValueAsBoolean

      public boolean getValueAsBoolean()
    • getValueAsString

      public String getValueAsString()
    • getValueAsInteger

      public int getValueAsInteger()
    • getValueAsLong

      public long getValueAsLong()
    • getValueAsFloat

      public float getValueAsFloat()
    • getKey

      public String getKey()
    • isChangeableAtRuntime

      public Boolean isChangeableAtRuntime()
    • isHidden

      public boolean isHidden()
    • getDefValue

      public Object getDefValue()
    • getType

      public Class<?> getType()
    • getDescription

      public String getDescription()