2021-01-30 20:16:14 +01:00
|
|
|
package it.cavallium.dbengine.client;
|
|
|
|
|
2021-10-30 11:13:46 +02:00
|
|
|
import io.micrometer.core.instrument.MeterRegistry;
|
2022-03-16 13:47:56 +01:00
|
|
|
import io.netty5.buffer.api.BufferAllocator;
|
2022-05-04 01:21:56 +02:00
|
|
|
import it.cavallium.dbengine.database.DatabaseProperties;
|
2021-06-26 02:35:33 +02:00
|
|
|
import reactor.core.publisher.Flux;
|
2021-01-30 20:16:14 +01:00
|
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
2022-05-04 01:21:56 +02:00
|
|
|
public interface CompositeDatabase extends DatabaseProperties {
|
2021-01-30 20:16:14 +01:00
|
|
|
|
2022-06-21 14:35:07 +02:00
|
|
|
Mono<Void> preClose();
|
|
|
|
|
2021-01-30 20:16:14 +01:00
|
|
|
Mono<Void> close();
|
|
|
|
|
2021-06-26 02:35:33 +02:00
|
|
|
/**
|
|
|
|
* Can return SnapshotException
|
|
|
|
*/
|
|
|
|
Mono<CompositeSnapshot> takeSnapshot();
|
2021-01-30 20:16:14 +01:00
|
|
|
|
2021-06-26 02:35:33 +02:00
|
|
|
/**
|
|
|
|
* Can return SnapshotException
|
|
|
|
*/
|
|
|
|
Mono<Void> releaseSnapshot(CompositeSnapshot snapshot);
|
2021-05-05 17:31:21 +02:00
|
|
|
|
2021-08-29 23:18:03 +02:00
|
|
|
BufferAllocator getAllocator();
|
2021-06-26 02:35:33 +02:00
|
|
|
|
2021-10-30 11:13:46 +02:00
|
|
|
MeterRegistry getMeterRegistry();
|
|
|
|
|
2021-06-26 02:35:33 +02:00
|
|
|
/**
|
|
|
|
* Find corrupted items
|
|
|
|
*/
|
|
|
|
Flux<BadBlock> badBlocks();
|
2021-06-27 15:06:48 +02:00
|
|
|
|
|
|
|
Mono<Void> verifyChecksum();
|
2021-01-30 20:16:14 +01:00
|
|
|
}
|