public class WebCassandraDirectoryProvider extends Object implements CassandraDirectoryProvider
CassandraDirectoryProvider, that downloads and extracts Cassandra archive from the
well-known URLs into the download directory.
If the Cassandra's archive have already been extracted into the directory, then directory will be used, skipping downloading and extracting steps.
| Constructor and Description |
|---|
WebCassandraDirectoryProvider()
|
WebCassandraDirectoryProvider(HttpClient httpClient)
|
WebCassandraDirectoryProvider(HttpClient httpClient,
Path downloadDirectory)
Creates a new
WebCassandraDirectoryProvider with provided HttpClient and download directory. |
WebCassandraDirectoryProvider(Path downloadDirectory)
Creates a new
WebCassandraDirectoryProvider with JdkHttpClient and provided download directory. |
| Modifier and Type | Method and Description |
|---|---|
Path |
getDirectory(Version version)
Returns the path to Cassandra directory by provided version.
|
public WebCassandraDirectoryProvider()
public WebCassandraDirectoryProvider(HttpClient httpClient)
httpClient - http client to usepublic WebCassandraDirectoryProvider(Path downloadDirectory)
WebCassandraDirectoryProvider with JdkHttpClient and provided download directory.downloadDirectory - the download directorypublic WebCassandraDirectoryProvider(HttpClient httpClient, Path downloadDirectory)
WebCassandraDirectoryProvider with provided HttpClient and download directory.httpClient - http client to usedownloadDirectory - the download directorypublic final Path getDirectory(Version version) throws IOException
CassandraDirectoryProvidergetDirectory in interface CassandraDirectoryProviderversion - Cassandra versionIOException - an I/O error occursCopyright © 2023. All rights reserved.