Package org.yamcs.protobuf
Class AbstractRocksDbApi<T>
java.lang.Object
org.yamcs.protobuf.AbstractRocksDbApi<T>
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
RocksDbApi,RocksDbApiClient
@Generated(value="org.yamcs.maven.ServiceGenerator",
date="2025-11-14T12:29:03.574405356Z")
public abstract class AbstractRocksDbApi<T>
extends Object
implements Api<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbackupDatabase(T ctx, BackupDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Backup databasefinal voidcallMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future) final Observer<com.google.protobuf.Message>callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future) abstract voidcompactDatabase(T ctx, CompactDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Compact databaseabstract voiddescribeDatabase(T 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.abstract voiddescribeRocksDb(T ctx, com.google.protobuf.Empty request, Observer<HttpBody> observer) Get a text-dump with general RocksDB infofinal com.google.protobuf.Descriptors.ServiceDescriptorfinal com.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) final com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) abstract voidlistDatabases(T ctx, com.google.protobuf.Empty request, Observer<ListRocksDbDatabasesResponse> observer) List databasesabstract voidlistTablespaces(T ctx, com.google.protobuf.Empty request, Observer<ListRocksDbTablespacesResponse> observer) List tablespaces
-
Constructor Details
-
AbstractRocksDbApi
public AbstractRocksDbApi()
-
-
Method Details
-
listTablespaces
public abstract void listTablespaces(T ctx, com.google.protobuf.Empty request, Observer<ListRocksDbTablespacesResponse> observer) List tablespaces
-
backupDatabase
public abstract void backupDatabase(T ctx, BackupDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Backup database
-
listDatabases
public abstract void listDatabases(T ctx, com.google.protobuf.Empty request, Observer<ListRocksDbDatabasesResponse> observer) List databases
-
compactDatabase
public abstract void compactDatabase(T ctx, CompactDatabaseRequest request, Observer<com.google.protobuf.Empty> observer) Compact database
-
describeRocksDb
public abstract void describeRocksDb(T ctx, com.google.protobuf.Empty request, Observer<HttpBody> observer) Get a text-dump with general RocksDB info
-
describeDatabase
public abstract void describeDatabase(T 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. 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.
-
getDescriptorForType
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceApi<T>
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) - Specified by:
getRequestPrototypein interfaceApi<T>
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) - Specified by:
getResponsePrototypein interfaceApi<T>
-
callMethod
public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future) - Specified by:
callMethodin interfaceApi<T>
-
callMethod
public final Observer<com.google.protobuf.Message> callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future) - Specified by:
callMethodin interfaceApi<T>
-