Package org.rocksdb
Enum InfoLogLevel
- java.lang.Object
-
- java.lang.Enum<InfoLogLevel>
-
- org.rocksdb.InfoLogLevel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InfoLogLevel>
public enum InfoLogLevel extends java.lang.Enum<InfoLogLevel>
RocksDB log levels.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUG_LEVELERROR_LEVELFATAL_LEVELHEADER_LEVELINFO_LEVELNUM_INFO_LOG_LEVELSWARN_LEVEL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InfoLogLevelgetInfoLogLevel(byte value)Get InfoLogLevel by byte value.bytegetValue()Returns the byte value of the enumerations valuestatic InfoLogLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InfoLogLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEBUG_LEVEL
public static final InfoLogLevel DEBUG_LEVEL
-
INFO_LEVEL
public static final InfoLogLevel INFO_LEVEL
-
WARN_LEVEL
public static final InfoLogLevel WARN_LEVEL
-
ERROR_LEVEL
public static final InfoLogLevel ERROR_LEVEL
-
FATAL_LEVEL
public static final InfoLogLevel FATAL_LEVEL
-
HEADER_LEVEL
public static final InfoLogLevel HEADER_LEVEL
-
NUM_INFO_LOG_LEVELS
public static final InfoLogLevel NUM_INFO_LOG_LEVELS
-
-
Method Detail
-
values
public static InfoLogLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InfoLogLevel c : InfoLogLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InfoLogLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public byte getValue()
Returns the byte value of the enumerations value- Returns:
- byte representation
-
getInfoLogLevel
public static InfoLogLevel getInfoLogLevel(byte value)
Get InfoLogLevel by byte value.- Parameters:
value- byte representation of InfoLogLevel.- Returns:
InfoLogLevelinstance.- Throws:
java.lang.IllegalArgumentException- if an invalid value is provided.
-
-