Package org.apache.flink.state.rocksdb
Enum RocksDBProperty
- java.lang.Object
-
- java.lang.Enum<RocksDBProperty>
-
- org.apache.flink.state.rocksdb.RocksDBProperty
-
- All Implemented Interfaces:
Serializable
,Comparable<RocksDBProperty>
@Internal public enum RocksDBProperty extends Enum<RocksDBProperty>
RocksDB
properties that can be queried by Flink's metrics reporter.Note: Metrics properties are added in each new version of
RocksDB
, when upgrading to a latter version consider updating this class with newly added properties.
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description protected static String
CONFIG_KEY_FORMAT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigKey()
long
getNumericalPropertyValue(org.rocksdb.RocksDB rocksDB, org.rocksdb.ColumnFamilyHandle handle)
String
getRocksDBProperty()
static RocksDBProperty
valueOf(String name)
Returns the enum constant of this type with the specified name.static RocksDBProperty[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NumImmutableMemTable
public static final RocksDBProperty NumImmutableMemTable
-
MemTableFlushPending
public static final RocksDBProperty MemTableFlushPending
-
CompactionPending
public static final RocksDBProperty CompactionPending
-
BackgroundErrors
public static final RocksDBProperty BackgroundErrors
-
CurSizeActiveMemTable
public static final RocksDBProperty CurSizeActiveMemTable
-
CurSizeAllMemTables
public static final RocksDBProperty CurSizeAllMemTables
-
SizeAllMemTables
public static final RocksDBProperty SizeAllMemTables
-
NumEntriesActiveMemTable
public static final RocksDBProperty NumEntriesActiveMemTable
-
NumEntriesImmMemTables
public static final RocksDBProperty NumEntriesImmMemTables
-
NumDeletesActiveMemTable
public static final RocksDBProperty NumDeletesActiveMemTable
-
NumDeletesImmMemTables
public static final RocksDBProperty NumDeletesImmMemTables
-
EstimateNumKeys
public static final RocksDBProperty EstimateNumKeys
-
EstimateTableReadersMem
public static final RocksDBProperty EstimateTableReadersMem
-
NumSnapshots
public static final RocksDBProperty NumSnapshots
-
NumLiveVersions
public static final RocksDBProperty NumLiveVersions
-
EstimateLiveDataSize
public static final RocksDBProperty EstimateLiveDataSize
-
TotalSstFilesSize
public static final RocksDBProperty TotalSstFilesSize
-
LiveSstFilesSize
public static final RocksDBProperty LiveSstFilesSize
-
EstimatePendingCompactionBytes
public static final RocksDBProperty EstimatePendingCompactionBytes
-
NumRunningCompactions
public static final RocksDBProperty NumRunningCompactions
-
NumRunningFlushes
public static final RocksDBProperty NumRunningFlushes
-
ActualDelayedWriteRate
public static final RocksDBProperty ActualDelayedWriteRate
-
IsWriteStopped
public static final RocksDBProperty IsWriteStopped
-
BlockCacheCapacity
public static final RocksDBProperty BlockCacheCapacity
-
BlockCacheUsage
public static final RocksDBProperty BlockCacheUsage
-
BlockCachePinnedUsage
public static final RocksDBProperty BlockCachePinnedUsage
-
NumFilesAtLevel0
public static final RocksDBProperty NumFilesAtLevel0
-
NumFilesAtLevel1
public static final RocksDBProperty NumFilesAtLevel1
-
NumFilesAtLevel2
public static final RocksDBProperty NumFilesAtLevel2
-
NumFilesAtLevel3
public static final RocksDBProperty NumFilesAtLevel3
-
NumFilesAtLevel4
public static final RocksDBProperty NumFilesAtLevel4
-
NumFilesAtLevel5
public static final RocksDBProperty NumFilesAtLevel5
-
NumFilesAtLevel6
public static final RocksDBProperty NumFilesAtLevel6
-
-
Field Detail
-
CONFIG_KEY_FORMAT
protected static final String CONFIG_KEY_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RocksDBProperty[] 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 (RocksDBProperty c : RocksDBProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RocksDBProperty valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getRocksDBProperty
public String getRocksDBProperty()
- Returns:
- property string that can be used to query
RocksDB.getLongProperty(ColumnFamilyHandle, String)
.
-
getNumericalPropertyValue
public long getNumericalPropertyValue(org.rocksdb.RocksDB rocksDB, org.rocksdb.ColumnFamilyHandle handle) throws Exception
- Throws:
Exception
-
getConfigKey
public String getConfigKey()
- Returns:
- key for enabling metric using
Configuration
.
-
-