Package org.yamcs.http.api
Class RocksDbApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backupDatabase
(Context ctx, BackupDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Backup databasevoid
compactDatabase
(Context ctx, CompactDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Compact databasevoid
describeDatabase
(Context ctx, DescribeDatabaseRequest request, Observer<HttpBody> observer) Get a text-dump describing a database This operation can be used to debug the inner workings of RocksDB database.void
describeRocksDb
(Context ctx, com.google.protobuf.Empty request, Observer<HttpBody> observer) Get a text-dump with general RocksDB infovoid
listDatabases
(Context ctx, com.google.protobuf.Empty request, Observer<ListRocksDbDatabasesResponse> observer) List databasesvoid
listTablespaces
(Context ctx, com.google.protobuf.Empty request, Observer<ListRocksDbTablespacesResponse> observer) List tablespacesMethods inherited from class org.yamcs.protobuf.AbstractRocksDbApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
Constructor Details
-
RocksDbApi
-
-
Method Details
-
listTablespaces
public void listTablespaces(Context ctx, com.google.protobuf.Empty request, Observer<ListRocksDbTablespacesResponse> observer) Description copied from class:AbstractRocksDbApi
List tablespaces
- Specified by:
listTablespaces
in classAbstractRocksDbApi<Context>
-
backupDatabase
public void backupDatabase(Context ctx, BackupDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractRocksDbApi
Backup database
- Specified by:
backupDatabase
in classAbstractRocksDbApi<Context>
-
listDatabases
public void listDatabases(Context ctx, com.google.protobuf.Empty request, Observer<ListRocksDbDatabasesResponse> observer) Description copied from class:AbstractRocksDbApi
List databases
- Specified by:
listDatabases
in classAbstractRocksDbApi<Context>
-
compactDatabase
public void compactDatabase(Context ctx, CompactDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractRocksDbApi
Compact database
- Specified by:
compactDatabase
in classAbstractRocksDbApi<Context>
-
describeRocksDb
public void describeRocksDb(Context ctx, com.google.protobuf.Empty request, Observer<HttpBody> observer) Description copied from class:AbstractRocksDbApi
Get a text-dump with general RocksDB info
- Specified by:
describeRocksDb
in classAbstractRocksDbApi<Context>
-
describeDatabase
public void describeDatabase(Context ctx, DescribeDatabaseRequest request, Observer<HttpBody> observer) Description copied from class:AbstractRocksDbApi
Get a text-dump describing a database This operation can be used to debug the inner workings of RocksDB database. For example the property rocksdb.estimate-table-readers-mem will provide an estimation of how much memory is used by the index and filter cache of RocksDB (note that the memory used by RocksDB is outside the java heap space). See also: https://github.com/facebook/rocksdb/blob/master/include/rocksdb/db.h The response contains a dump of various rocksdb properties for each column family. The single value properties are presented in a "name: value" list. The multiline properties are preceded by a line including the property name between dashes.
- Specified by:
describeDatabase
in classAbstractRocksDbApi<Context>
-