Interface WorkingDirectoryInitializer
-
- All Known Implementing Classes:
DefaultWorkingDirectoryInitializer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WorkingDirectoryInitializer
A strategy interface for initializing the working directory. After theinit(Path, Version)method is executed, the working directory must contain all the necessary Cassandra files required for operation.This interface provides an abstraction for setting up the working directory with required files and configurations.
- Since:
- 4.0.0
- Author:
- Dmytro Nosan
- See Also:
DefaultWorkingDirectoryInitializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinit(Path workingDirectory, Version version)Initializes the working directory by copying or setting up all required files.
-
-
-
Method Detail
-
init
void init(Path workingDirectory, Version version) throws IOException
Initializes the working directory by copying or setting up all required files.- Parameters:
workingDirectory- The working directory to initializeversion- The Cassandra version- Throws:
IOException- If an I/O error occurs during the initialization process
-
-