org.apache.flink.contrib.streaming.state.RocksDBNativeMetricMonitor Java Examples
The following examples show how to use
org.apache.flink.contrib.streaming.state.RocksDBNativeMetricMonitor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RocksDBRestoreResult.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
public RocksDBRestoreResult( RocksDB db, ColumnFamilyHandle defaultColumnFamilyHandle, RocksDBNativeMetricMonitor nativeMetricMonitor, long lastCompletedCheckpointId, UUID backendUID, SortedMap<Long, Set<StateHandleID>> restoredSstFiles) { this.db = db; this.defaultColumnFamilyHandle = defaultColumnFamilyHandle; this.nativeMetricMonitor = nativeMetricMonitor; this.lastCompletedCheckpointId = lastCompletedCheckpointId; this.backendUID = backendUID; this.restoredSstFiles = restoredSstFiles; }
Example #2
Source File: AbstractRocksDBRestoreOperation.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
void openDB() throws IOException { db = RocksDBOperationUtils.openDB( dbPath, columnFamilyDescriptors, columnFamilyHandles, RocksDBOperationUtils.createColumnFamilyOptions(columnFamilyOptionsFactory, "default"), dbOptions); // remove the default column family which is located at the first index defaultColumnFamilyHandle = columnFamilyHandles.remove(0); // init native metrics monitor if configured nativeMetricMonitor = nativeMetricOptions.isEnabled() ? new RocksDBNativeMetricMonitor(nativeMetricOptions, metricGroup, db) : null; }
Example #3
Source File: RocksDBRestoreResult.java From flink with Apache License 2.0 | 5 votes |
public RocksDBRestoreResult( RocksDB db, ColumnFamilyHandle defaultColumnFamilyHandle, RocksDBNativeMetricMonitor nativeMetricMonitor, long lastCompletedCheckpointId, UUID backendUID, SortedMap<Long, Set<StateHandleID>> restoredSstFiles) { this.db = db; this.defaultColumnFamilyHandle = defaultColumnFamilyHandle; this.nativeMetricMonitor = nativeMetricMonitor; this.lastCompletedCheckpointId = lastCompletedCheckpointId; this.backendUID = backendUID; this.restoredSstFiles = restoredSstFiles; }
Example #4
Source File: AbstractRocksDBRestoreOperation.java From flink with Apache License 2.0 | 5 votes |
void openDB() throws IOException { db = RocksDBOperationUtils.openDB( dbPath, columnFamilyDescriptors, columnFamilyHandles, RocksDBOperationUtils.createColumnFamilyOptions(columnFamilyOptionsFactory, "default"), dbOptions); // remove the default column family which is located at the first index defaultColumnFamilyHandle = columnFamilyHandles.remove(0); // init native metrics monitor if configured nativeMetricMonitor = nativeMetricOptions.isEnabled() ? new RocksDBNativeMetricMonitor(nativeMetricOptions, metricGroup, db) : null; }
Example #5
Source File: RocksDBRestoreResult.java From flink with Apache License 2.0 | 5 votes |
public RocksDBRestoreResult( RocksDB db, ColumnFamilyHandle defaultColumnFamilyHandle, RocksDBNativeMetricMonitor nativeMetricMonitor, long lastCompletedCheckpointId, UUID backendUID, SortedMap<Long, Set<StateHandleID>> restoredSstFiles) { this.db = db; this.defaultColumnFamilyHandle = defaultColumnFamilyHandle; this.nativeMetricMonitor = nativeMetricMonitor; this.lastCompletedCheckpointId = lastCompletedCheckpointId; this.backendUID = backendUID; this.restoredSstFiles = restoredSstFiles; }
Example #6
Source File: AbstractRocksDBRestoreOperation.java From flink with Apache License 2.0 | 5 votes |
void openDB() throws IOException { db = RocksDBOperationUtils.openDB( dbPath, columnFamilyDescriptors, columnFamilyHandles, RocksDBOperationUtils.createColumnFamilyOptions(columnFamilyOptionsFactory, "default"), dbOptions); // remove the default column family which is located at the first index defaultColumnFamilyHandle = columnFamilyHandles.remove(0); // init native metrics monitor if configured nativeMetricMonitor = nativeMetricOptions.isEnabled() ? new RocksDBNativeMetricMonitor(nativeMetricOptions, metricGroup, db) : null; }
Example #7
Source File: RocksDBRestoreResult.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public RocksDBNativeMetricMonitor getNativeMetricMonitor() { return nativeMetricMonitor; }
Example #8
Source File: RocksDBRestoreResult.java From flink with Apache License 2.0 | 4 votes |
public RocksDBNativeMetricMonitor getNativeMetricMonitor() { return nativeMetricMonitor; }
Example #9
Source File: RocksDBRestoreResult.java From flink with Apache License 2.0 | 4 votes |
public RocksDBNativeMetricMonitor getNativeMetricMonitor() { return nativeMetricMonitor; }