@FunctionalInterface public interface WorkingDirectoryDestroyer
deleteAll(),
deleteOnly(String...),
doNothing()| Modifier and Type | Method and Description |
|---|---|
static WorkingDirectoryDestroyer |
deleteAll()
Completely deletes the working directory.
|
static WorkingDirectoryDestroyer |
deleteOnly(String... paths)
Deletes the provided paths in the working directory.
|
void |
destroy(Path workingDirectory,
Version version)
Destroys the working directory.
|
static WorkingDirectoryDestroyer |
doNothing()
Do nothing to the working directory.
|
static WorkingDirectoryDestroyer deleteAll()
static WorkingDirectoryDestroyer deleteOnly(String... paths)
paths - paths within the working directory. (e.g. lib, bin, tools, conf/cassandra.yaml)static WorkingDirectoryDestroyer doNothing()
void destroy(Path workingDirectory, Version version) throws IOException
workingDirectory - working directoryversion - Cassandra versionIOException - an I/O error occursCopyright © 2023. All rights reserved.