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-11-22 17:36:31 +01:00
|
|
|
import it.cavallium.dbengine.database.DatabaseOperations;
|
2022-05-04 01:21:56 +02:00
|
|
|
import it.cavallium.dbengine.database.DatabaseProperties;
|
2023-02-09 23:34:25 +01:00
|
|
|
import java.util.stream.Stream;
|
2021-01-30 20:16:14 +01:00
|
|
|
|
2022-11-22 17:36:31 +01:00
|
|
|
public interface CompositeDatabase extends DatabaseProperties, DatabaseOperations {
|
2021-01-30 20:16:14 +01:00
|
|
|
|
2023-02-09 23:34:25 +01:00
|
|
|
void preClose();
|
2022-06-21 14:35:07 +02:00
|
|
|
|
2023-02-09 23:34:25 +01:00
|
|
|
void close();
|
2021-01-30 20:16:14 +01:00
|
|
|
|
2021-06-26 02:35:33 +02:00
|
|
|
/**
|
|
|
|
* Can return SnapshotException
|
|
|
|
*/
|
2023-02-09 23:34:25 +01:00
|
|
|
CompositeSnapshot takeSnapshot();
|
2021-01-30 20:16:14 +01:00
|
|
|
|
2021-06-26 02:35:33 +02:00
|
|
|
/**
|
|
|
|
* Can return SnapshotException
|
|
|
|
*/
|
2023-02-09 23:34:25 +01:00
|
|
|
void releaseSnapshot(CompositeSnapshot snapshot);
|
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
|
|
|
|
*/
|
2023-10-10 00:39:41 +02:00
|
|
|
Stream<DbProgress<SSTVerificationProgress>> verify();
|
2021-06-27 15:06:48 +02:00
|
|
|
|
2023-02-09 23:34:25 +01:00
|
|
|
void verifyChecksum();
|
2021-01-30 20:16:14 +01:00
|
|
|
}
|