public abstract class AbstractRocksDbApi<T> extends Object implements Api<T>
| Constructor and Description |
|---|
AbstractRocksDbApi() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
backupDatabase(T ctx,
BackupDatabaseRequest request,
Observer<com.google.protobuf.Empty> observer)
Backup database
|
void |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future) |
Observer<com.google.protobuf.Message> |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
Observer<com.google.protobuf.Message> future) |
abstract void |
compactDatabase(T ctx,
CompactDatabaseRequest request,
Observer<com.google.protobuf.Empty> observer)
Compact database
|
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.
|
abstract void |
describeRocksDb(T ctx,
com.google.protobuf.Empty request,
Observer<HttpBody> observer)
Get a text-dump with general RocksDB info
|
com.google.protobuf.Descriptors.ServiceDescriptor |
getDescriptorForType() |
com.google.protobuf.Message |
getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
com.google.protobuf.Message |
getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
abstract void |
listDatabases(T ctx,
com.google.protobuf.Empty request,
Observer<ListRocksDbDatabasesResponse> observer)
List databases
|
abstract void |
listTablespaces(T ctx,
com.google.protobuf.Empty request,
Observer<ListRocksDbTablespacesResponse> observer)
List tablespaces
|
public abstract void listTablespaces(T ctx, com.google.protobuf.Empty request, Observer<ListRocksDbTablespacesResponse> observer)
List tablespaces
public abstract void backupDatabase(T ctx, BackupDatabaseRequest request, Observer<com.google.protobuf.Empty> observer)
Backup database
public abstract void listDatabases(T ctx, com.google.protobuf.Empty request, Observer<ListRocksDbDatabasesResponse> observer)
List databases
public abstract void compactDatabase(T ctx, CompactDatabaseRequest request, Observer<com.google.protobuf.Empty> observer)
Compact database
public abstract void describeRocksDb(T ctx, com.google.protobuf.Empty request, Observer<HttpBody> observer)
Get a text-dump with general RocksDB info
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.
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
getDescriptorForType in interface Api<T>public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getRequestPrototype in interface Api<T>public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getResponsePrototype in interface Api<T>public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future)
callMethod in interface Api<T>Copyright © 2022 Space Applications Services. All rights reserved.