RaidConfig class
Immutable configuration object passed to FilesystemRaid.
Example:
const config = RaidConfig(
type: RaidType.raid5,
diskCount: 3,
enableCompression: true,
);
- Annotations
-
- @immutable
Constructors
-
RaidConfig({required RaidType type, required int diskCount, bool enableCompression = false, bool enableEncryption = false, List<
int> ? encryptionKey, int chunkSize = _defaultChunkSize, Duration healthCheckInterval = const Duration(hours: 24), ParityAlgorithm parityAlgorithm = ParityAlgorithm.xor, int maxRetries = 3, bool writeVerification = true, RaidLogLevel logLevel = RaidLogLevel.info}) -
Creates a RaidConfig.
const
Properties
- chunkSize → int
-
Size in bytes of each stripe chunk (default 4 MiB).
final
- diskCount → int
-
Number of physical disks (must match the
diskPathslist length).final - enableCompression → bool
-
Compress chunk data before writing (DEFLATE).
final
- enableEncryption → bool
-
Encrypt chunk data with AES-256-CBC before writing.
final
-
encryptionKey
→ List<
int> ? -
32-byte AES key. Required when enableEncryption is
true.final - faultTolerance → int
-
Number of tolerated disk failures before data loss.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- healthCheckInterval → Duration
-
How often the background health checker inspects disk status.
final
- logLevel → RaidLogLevel
-
Verbosity of the internal logger.
final
- maxRetries → int
-
Number of I/O retry attempts on transient errors.
final
- parityAlgorithm → ParityAlgorithm
-
Parity algorithm used when type is RaidType.raid5.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storageEfficiency → double
-
Storage efficiency (usable / total capacity).
no setter
- type → RaidType
-
RAID level.
final
- writeVerification → bool
-
Re-read every chunk after write to verify data integrity.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited