Package one.microstream.storage.types
Interface StorageStructureValidator
- All Known Implementing Classes:
StorageStructureValidator.Default
public interface StorageStructureValidator
Run validation(s) of the storage before starting the storage system.
Those are
- number of channel directories must match the configured channel count
if there are any channel directories
- all channel directories must contain at least on data file
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageStructureValidator.Default
-
Method Summary
Modifier and Type Method Description static StorageStructureValidator
New(StorageLiveFileProvider fileProvider, StorageChannelCountProvider channelCountProvider)
void
validate()
run the validations.
-
Method Details
-
validate
void validate()run the validations. Throws StorageStructureValidationException in case of problems -
New
static StorageStructureValidator New(StorageLiveFileProvider fileProvider, StorageChannelCountProvider channelCountProvider)
-