A B C D E F G H I J K L N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractCqlScript - Class in com.github.nosan.embedded.cassandra.cql
-
An abstract implementation of the
CqlScriptinterface that facilitates parsing a CQL (Cassandra Query Language) script into individual statements. - add(String, String) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
-
Adds a value to the list of values for the specified header name.
- addConfigProperties(Map<String, ?>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds multiple Cassandra configuration properties to the current configuration, merging them with the properties defined in the `cassandra.yaml` file.
- addConfigProperty(String, Object) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets a single Cassandra configuration property, which will be merged with properties defined in the `cassandra.yaml` file.
- addEnvironmentVariable(String, Object) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds a Cassandra environment variable to the current configuration.
- addEnvironmentVariables(Map<String, ?>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds multiple Cassandra environment variables to the current configuration.
- addJvmOptions(String...) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds Cassandra native Java Virtual Machine (JVM) options to the current configuration.
- addJvmOptions(Collection<String>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds the specified Cassandra native Java Virtual Machine (JVM) options to the existing configuration.
- addResource(Resource) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
-
Adds a
Resourcewith the default UTF-8 charset to the builder. - addResource(Resource, String) - Static method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryCustomizer
-
Copies a resource to a target path within the working directory.
- addResource(Resource, Charset) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
- addScript(CqlScript) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
-
Adds a
CqlScriptto the builder. - addScript(String) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
-
Adds a plain CQL script string to the builder.
- addSeed(String, int) - Method in class com.github.nosan.embedded.cassandra.SimpleSeedProviderConfigurator
-
Adds the address with a port.
- addSeeds(String...) - Method in class com.github.nosan.embedded.cassandra.SimpleSeedProviderConfigurator
-
Adds the addresses.
- addStatements(String...) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
-
Adds one or more static CQL statements to the builder.
- addStatements(List<? extends String>) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
-
Adds a list of static CQL statements to the builder.
- addSystemProperties(Map<String, ?>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds multiple Cassandra native Java Virtual Machine (JVM) system properties to the current configuration.
- addSystemProperty(String, Object) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds a single Cassandra native Java Virtual Machine (JVM) system property to the current configuration.
- addWorkingDirectoryCustomizers(WorkingDirectoryCustomizer...) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds one or more
WorkingDirectoryCustomizerinstances to customize the working directory. - addWorkingDirectoryCustomizers(Collection<? extends WorkingDirectoryCustomizer>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Adds one or more
WorkingDirectoryCustomizerinstances to the current configuration. - addWorkingDirectoryResource(Resource, String) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Copies a resource to a specified target path within the working directory.
B
- build() - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Build a new
Cassandrainstance. - build() - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet.Builder
-
Builds and returns a
CqlDataSetinstance. - builder() - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Creates a new
CqlDataSet.Builderinstance for constructingCqlDataSetobjects.
C
- Cassandra - Interface in com.github.nosan.embedded.cassandra
- CassandraBuilder - Class in com.github.nosan.embedded.cassandra
-
A builder that can be used to configure and create
Cassandra. - CassandraBuilder() - Constructor for class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Creates a new
CassandraBuilder. - CassandraBuilderConfigurator - Interface in com.github.nosan.embedded.cassandra
-
A callback interface to configure a
CassandraBuilder. - CassandraDirectoryProvider - Interface in com.github.nosan.embedded.cassandra
-
Provides the path to the Cassandra directory based on a specified version.
- CassandraException - Exception in com.github.nosan.embedded.cassandra
-
An exception thrown by a
Cassandra. - CassandraException(String, Throwable) - Constructor for exception com.github.nosan.embedded.cassandra.CassandraException
-
Constructs a new
CassandraExceptionwith the specified detail message and cause. - checksum(Path, String) - Static method in class com.github.nosan.embedded.cassandra.commons.FileUtils
-
Computes the checksum of the specified file using the given algorithm.
- ClassPathResource - Class in com.github.nosan.embedded.cassandra.commons
-
Resourceimplementation for class path resources. - ClassPathResource(String) - Constructor for class com.github.nosan.embedded.cassandra.commons.ClassPathResource
-
Constructs a new
ClassPathResourcewith the specified resource name. - ClassPathResource(String, ClassLoader) - Constructor for class com.github.nosan.embedded.cassandra.commons.ClassPathResource
-
Constructs a new
ClassPathResourcewith the specified resource name and class loader. - clear() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- close() - Method in class com.github.nosan.embedded.cassandra.commons.FileLock
-
Releases all locks and closes the underlying
FileChannel. - close() - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpResponse
-
Closes the response and releases any underlying resources.
- com.github.nosan.embedded.cassandra - package com.github.nosan.embedded.cassandra
-
Embedded Cassandra provides an easy way to start and stop Apache Cassandra.
- com.github.nosan.embedded.cassandra.commons - package com.github.nosan.embedded.cassandra.commons
-
Common classes.
- com.github.nosan.embedded.cassandra.commons.function - package com.github.nosan.embedded.cassandra.commons.function
-
I/O function classes.
- com.github.nosan.embedded.cassandra.commons.web - package com.github.nosan.embedded.cassandra.commons.web
-
HTTP client classes.
- com.github.nosan.embedded.cassandra.cql - package com.github.nosan.embedded.cassandra.cql
-
CQL classes.
- compareTo(Version) - Method in class com.github.nosan.embedded.cassandra.Version
- configFile(Resource) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra configuration file path.
- configProperties(Map<String, ?>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra configuration properties to be merged with the properties defined in the `cassandra.yaml` file.
- configure(CassandraBuilder) - Method in interface com.github.nosan.embedded.cassandra.CassandraBuilderConfigurator
-
Configure the builder.
- configure(CassandraBuilder) - Method in class com.github.nosan.embedded.cassandra.SimpleSeedProviderConfigurator
- configure(CassandraBuilderConfigurator) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Applies the specified configurator to customize this builder.
- containsKey(Object) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- containsValue(Object) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- copy(InputStream, OutputStream) - Static method in class com.github.nosan.embedded.cassandra.commons.StreamUtils
-
Copies the contents of an
InputStreamto anOutputStream. - copy(Path, Path) - Method in interface com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer.CopyStrategy
-
Copies Cassandra files into the working directory.
- copy(Path, Path, CopyOption...) - Static method in class com.github.nosan.embedded.cassandra.commons.FileUtils
-
Copies a file or directory to the target location.
- copy(Path, Path, BiPredicate<? super Path, ? super BasicFileAttributes>, CopyOption...) - Static method in class com.github.nosan.embedded.cassandra.commons.FileUtils
-
Copies a file or directory to the target location with a filtering function.
- copyOf(Map<String, List<String>>) - Static method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
-
Creates an
HttpHeadersinstance by copying the provided headers. - CqlDataSet - Interface in com.github.nosan.embedded.cassandra.cql
-
A
CqlDataSetrepresents a collection ofCqlScriptinstances, providing functionality to group and manage multiple CQL scripts that can be executed sequentially. - CqlDataSet.Builder - Interface in com.github.nosan.embedded.cassandra.cql
-
A builder for constructing instances of
CqlDataSet. - CqlScript - Interface in com.github.nosan.embedded.cassandra.cql
-
A
CqlScriptrepresents a collection of executable Cassandra Query Language (CQL) statements. - customize(Path, Version) - Method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryCustomizer
-
Customizes the working directory.
D
- DEFAULT_VERSION - Static variable in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Default Cassandra version.
- DefaultCqlDataSet - Class in com.github.nosan.embedded.cassandra.cql
-
Default implementation of the
CqlDataSetinterface. - DefaultCqlDataSet(Collection<? extends CqlScript>) - Constructor for class com.github.nosan.embedded.cassandra.cql.DefaultCqlDataSet
-
Creates a new immutable
DefaultCqlDataSetwith the specified CQL scripts. - DefaultWorkingDirectoryInitializer - Class in com.github.nosan.embedded.cassandra
-
The default implementation of
WorkingDirectoryInitializerretrieves the Cassandra directory from theCassandraDirectoryProviderand copies all files from the retrieved directory into the working directory, except for the javadoc, doc, and licenses directories. - DefaultWorkingDirectoryInitializer(CassandraDirectoryProvider) - Constructor for class com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer
-
Creates a new
DefaultWorkingDirectoryInitializerwith theDefaultWorkingDirectoryInitializer.CopyStrategy.REPLACE_EXISTINGcopy strategy. - DefaultWorkingDirectoryInitializer(CassandraDirectoryProvider, DefaultWorkingDirectoryInitializer.CopyStrategy) - Constructor for class com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer
-
Creates a new
DefaultWorkingDirectoryInitializer. - DefaultWorkingDirectoryInitializer.CopyStrategy - Interface in com.github.nosan.embedded.cassandra
-
Cassandra file copy strategies.
- delete(Path) - Static method in class com.github.nosan.embedded.cassandra.commons.FileUtils
-
Deletes the specified
Path. - deleteAll() - Static method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryDestroyer
-
Completely deletes the working directory.
- deleteOnly(String...) - Static method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryDestroyer
-
Deletes the specified paths in the working directory.
- destroy(Path, Version) - Method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryDestroyer
-
Destroys the working directory based on the implemented strategy.
- doNothing() - Static method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryDestroyer
-
Does nothing to the working directory.
E
- entrySet() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- environmentVariables(Map<String, ?>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra environment variables.
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.cql.DefaultCqlDataSet
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.cql.ResourceCqlScript
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.cql.StatementsCqlScript
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.cql.StringCqlScript
- equals(Object) - Method in class com.github.nosan.embedded.cassandra.Version
- exists() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- exists() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- exists() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Tests whether a resource exists.
- exists() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
F
- FileLock - Class in com.github.nosan.embedded.cassandra.commons
-
Utility class for obtaining an exclusive lock on a file.
- FileSystemResource - Class in com.github.nosan.embedded.cassandra.commons
-
Resourceimplementation for file system resources. - FileSystemResource(File) - Constructor for class com.github.nosan.embedded.cassandra.commons.FileSystemResource
-
Constructs a new
FileSystemResourcewith the specifiedFile. - FileSystemResource(Path) - Constructor for class com.github.nosan.embedded.cassandra.commons.FileSystemResource
-
Constructs a new
FileSystemResourcewith the specifiedPath. - FileUtils - Class in com.github.nosan.embedded.cassandra.commons
-
A utility class providing simple methods for dealing with files and directories.
- forEachScript(Consumer<? super CqlScript>) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
- forEachStatement(Consumer<? super String>) - Method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
G
- get() - Method in interface com.github.nosan.embedded.cassandra.commons.function.IOSupplier
-
Supplies a value, potentially throwing an
IOException. - get(Object) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- getAddress() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the address this
Cassandrainstance is listening on. - getConfigProperties() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the Cassandra configuration properties.
- getConfigurationFile() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the Cassandra configuration file.
- getDirectory(Version) - Method in interface com.github.nosan.embedded.cassandra.CassandraDirectoryProvider
-
Returns the path to the Cassandra directory for the specified version.
- getDirectory(Version) - Method in class com.github.nosan.embedded.cassandra.WebCassandraDirectoryProvider
- getEnvironmentVariables() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the Cassandra environment variables used at startup.
- getFile() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
-
Gets the file.
- getFileName() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- getFileName() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- getFileName() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Gets the file name of this resource.
- getFileName() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- getFirst(String) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
-
Retrieves the first value associated with the given header name.
- getHeaders() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Returns the HTTP headers associated with this request.
- getHeaders() - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpResponse
-
Returns the headers associated with this HTTP response.
- getInputStream() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- getInputStream() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- getInputStream() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Open an
InputStreamfor the underlying resource. - getInputStream() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- getInputStream() - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpResponse
-
Returns the body of the HTTP response as an
InputStream. - getJvmOptions() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the Cassandra JVM options used at startup.
- getLabel() - Method in class com.github.nosan.embedded.cassandra.Version
-
Retrieves the pre-release label, if available.
- getMajor() - Method in class com.github.nosan.embedded.cassandra.Version
-
Retrieves the major version.
- getMethod() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Returns the HTTP method of the request.
- getMinor() - Method in class com.github.nosan.embedded.cassandra.Version
-
Retrieves the minor version.
- getName() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Gets the name of this
Cassandrainstance. - getName() - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Gets the currently configured Cassandra instance name.
- getName() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the name of this
Cassandrainstance. - getOutputStream() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- getOutputStream() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- getOutputStream() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Open an
OutputStreamfor the underlying resource. - getOutputStream() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- getPatch() - Method in class com.github.nosan.embedded.cassandra.Version
-
Retrieves the patch version, if available.
- getPath() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
-
Gets the path.
- getPort() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the port this
Cassandrainstance is listening on. - getScripts() - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Retrieves all the
CqlScriptinstances contained within thisCqlDataSet. - getScripts() - Method in class com.github.nosan.embedded.cassandra.cql.DefaultCqlDataSet
-
Gets the list of
CqlScriptinstances contained within this dataset. - getSettings() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Retrieves the
Settingsof thisCassandrainstance. - getSslPort() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the SSL port this
Cassandrainstance is listening on. - getStatements() - Method in class com.github.nosan.embedded.cassandra.cql.AbstractCqlScript
-
Retrieves the list of statements parsed from the CQL script.
- getStatements() - Method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Retrieves all the CQL statements from every script in the
CqlDataSet. - getStatements() - Method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
-
Retrieves the list of CQL statements encapsulated within this
CqlScript. - getStatements() - Method in class com.github.nosan.embedded.cassandra.cql.StatementsCqlScript
-
Retrieves the list of CQL statements.
- getStatus() - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpResponse
-
Returns the HTTP status code of the response.
- getSystemProperties() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the Cassandra JVM parameters used at startup.
- getUri() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Returns the URI of the request.
- getUri() - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpResponse
-
Returns the URI of the HTTP request that resulted in this response.
- getVersion() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Retrieves the
Versionof thisCassandrainstance. - getVersion() - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Gets the currently configured Cassandra version.
- getVersion() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the
Versionof thisCassandrainstance. - getWorkingDirectory() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Retrieves the working directory of this
Cassandrainstance. - getWorkingDirectory() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Gets the working directory.
H
- hashCode() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- hashCode() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- hashCode() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- hashCode() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- hashCode() - Method in class com.github.nosan.embedded.cassandra.cql.DefaultCqlDataSet
- hashCode() - Method in class com.github.nosan.embedded.cassandra.cql.ResourceCqlScript
- hashCode() - Method in class com.github.nosan.embedded.cassandra.cql.StatementsCqlScript
- hashCode() - Method in class com.github.nosan.embedded.cassandra.cql.StringCqlScript
- hashCode() - Method in class com.github.nosan.embedded.cassandra.Version
- hasText(CharSequence) - Static method in class com.github.nosan.embedded.cassandra.commons.StringUtils
-
Check whether the provided
stringcontains actual text. - HttpClient - Interface in com.github.nosan.embedded.cassandra.commons.web
-
A simple interface for sending HTTP requests.
- HttpClient.BodySuppliers - Class in com.github.nosan.embedded.cassandra.commons.web
-
A utility class for creating different kinds of body suppliers.
- HttpHeaders - Class in com.github.nosan.embedded.cassandra.commons.web
-
Represents HTTP request and response headers in a case-insensitive manner.
- HttpHeaders() - Constructor for class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
-
Creates a new empty
HttpHeadersinstance. - HttpRequest - Class in com.github.nosan.embedded.cassandra.commons.web
-
Represents an HTTP request message.
- HttpRequest(URI) - Constructor for class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Creates a new
HttpRequestwith the specified URI and the default HTTPGETmethod. - HttpRequest(URI, String) - Constructor for class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Creates a new
HttpRequestwith the specified URI and HTTP method. - HttpRequest(URI, String, HttpHeaders) - Constructor for class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Creates a new
HttpRequestwith the specified URI, HTTP method, and headers. - HttpResponse - Interface in com.github.nosan.embedded.cassandra.commons.web
-
Represents an HTTP response message.
I
- init(Path, Version) - Method in class com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer
- init(Path, Version) - Method in interface com.github.nosan.embedded.cassandra.WorkingDirectoryInitializer
-
Initializes the working directory by copying or setting up all required files.
- IOSupplier<T> - Interface in com.github.nosan.embedded.cassandra.commons.function
-
Represents a supplier that may throw an
IOException. - isEmpty() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- isNativeTransportEnabled() - Method in interface com.github.nosan.embedded.cassandra.Settings
-
Checks whether the native transport is enabled.
- isReadable() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- isReadable() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- isReadable() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Tests whether a resource is readable.
- isReadable() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- isRunning() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Checks whether this
Cassandrainstance is running. - isWritable() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- isWritable() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- isWritable() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Tests whether a resource is writable.
- isWritable() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
J
- JdkHttpClient - Class in com.github.nosan.embedded.cassandra.commons.web
-
A
HttpClientimplementation based onHttpURLConnection. - JdkHttpClient() - Constructor for class com.github.nosan.embedded.cassandra.commons.web.JdkHttpClient
-
Creates a
JdkHttpClientwith no connection or read timeouts and no proxy. - JdkHttpClient(Proxy) - Constructor for class com.github.nosan.embedded.cassandra.commons.web.JdkHttpClient
-
Creates a
JdkHttpClientwith no connection or read timeouts and a specific proxy. - JdkHttpClient(Duration, Duration) - Constructor for class com.github.nosan.embedded.cassandra.commons.web.JdkHttpClient
-
Creates a
JdkHttpClientwith specified connection and read timeouts, but no proxy. - JdkHttpClient(Duration, Duration, Proxy) - Constructor for class com.github.nosan.embedded.cassandra.commons.web.JdkHttpClient
-
Creates a
JdkHttpClientwith specified connection and read timeouts and a proxy. - jvmOptions(String...) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets Cassandra native Java Virtual Machine (JVM) Options.
- jvmOptions(Collection<String>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra native Java Virtual Machine (JVM) options.
K
- keySet() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
L
- logger(Logger) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra logger.
N
- name(String) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra instance name.
O
- of(Path) - Static method in class com.github.nosan.embedded.cassandra.commons.FileLock
-
Creates a
FileLockinstance for the specified file. - ofBytes(byte[]) - Static method in class com.github.nosan.embedded.cassandra.commons.web.HttpClient.BodySuppliers
-
Creates a body supplier from the given byte array.
- ofClassPath(String) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
- ofClassPath(String, Charset) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
- ofClassPaths(String...) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Creates a
CqlDataSetfrom the specified classpath resource names, using the default charset. - ofClassPaths(Charset, String...) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Creates a
CqlDataSetfrom the specified classpath resource names, using the providedCharset. - ofResource(Resource) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
- ofResource(Resource, Charset) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
- ofResources(Resource...) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Creates a
CqlDataSetfrom the specifiedResourceinstances, using the default charset. - ofResources(Charset, Resource...) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
- ofScripts(CqlScript...) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
-
Creates a
CqlDataSetfrom the specifiedCqlScriptinstances. - ofStatements(String...) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
-
Creates a
CqlScriptinstance from an array of CQL statements. - ofStatements(List<? extends String>) - Static method in interface com.github.nosan.embedded.cassandra.cql.CqlScript
- ofString(String) - Static method in class com.github.nosan.embedded.cassandra.commons.web.HttpClient.BodySuppliers
-
Creates a body supplier from the given string.
- ofString(String, Charset) - Static method in class com.github.nosan.embedded.cassandra.commons.web.HttpClient.BodySuppliers
-
Creates a body supplier from the given string and charset.
P
- parse(String) - Static method in class com.github.nosan.embedded.cassandra.Version
-
Creates a
Versionfrom a textual representation, such as4.0. - put(String, List<String>) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- putAll(Map<? extends String, ? extends List<String>>) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
R
- readOnly(Map<String, List<String>>) - Static method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
-
Creates a read-only view of the specified HTTP headers.
- registerShutdownHook(boolean) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Specifies whether the created
Cassandrainstance should have a shutdown hook registered. - remove(Object) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- REPLACE_EXISTING - Static variable in interface com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer.CopyStrategy
-
Replaces a destination file if it exists.
- Resource - Interface in com.github.nosan.embedded.cassandra.commons
-
Resource that abstracts from the actual type of underlying source.
- ResourceCqlScript - Class in com.github.nosan.embedded.cassandra.cql
- ResourceCqlScript(Resource) - Constructor for class com.github.nosan.embedded.cassandra.cql.ResourceCqlScript
-
Creates a new
ResourceCqlScriptwith the givenResourceand the default platform charset. - ResourceCqlScript(Resource, Charset) - Constructor for class com.github.nosan.embedded.cassandra.cql.ResourceCqlScript
S
- seeds(String...) - Method in class com.github.nosan.embedded.cassandra.SimpleSeedProviderConfigurator
-
Sets the addresses.
- send(HttpRequest) - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpClient
-
Sends an HTTP request.
- send(HttpRequest, IOSupplier<? extends InputStream>) - Method in interface com.github.nosan.embedded.cassandra.commons.web.HttpClient
-
Sends an HTTP request with an optional body.
- send(HttpRequest, IOSupplier<? extends InputStream>) - Method in class com.github.nosan.embedded.cassandra.commons.web.JdkHttpClient
-
Sends an HTTP request using the
HttpURLConnectionAPI. - set(String, String) - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
-
Sets a single value for the specified header name.
- Settings - Interface in com.github.nosan.embedded.cassandra
-
Cassandra settings.
- SimpleSeedProviderConfigurator - Class in com.github.nosan.embedded.cassandra
-
A
CassandraBuilderConfiguratorimplementation that configures the `org.apache.cassandra.locator.SimpleSeedProvider` class. - SimpleSeedProviderConfigurator(String...) - Constructor for class com.github.nosan.embedded.cassandra.SimpleSeedProviderConfigurator
-
Creates
SimpleSeedProviderConfiguratorwith provided addresses. - size() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- SKIP_EXISTING - Static variable in interface com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer.CopyStrategy
-
Skips copying if a destination file already exists.
- start() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Starts
Cassandra. - startupTimeout(Duration) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the startup timeout.
- StatementsCqlScript - Class in com.github.nosan.embedded.cassandra.cql
-
A
CqlScriptimplementation that wraps a predefined list of CQL statements. - StatementsCqlScript(List<? extends String>) - Constructor for class com.github.nosan.embedded.cassandra.cql.StatementsCqlScript
-
Constructs a
StatementsCqlScriptwith the specified list of CQL statements. - stop() - Method in interface com.github.nosan.embedded.cassandra.Cassandra
-
Stops
Cassandra. - StreamUtils - Class in com.github.nosan.embedded.cassandra.commons
-
Utility class providing simple methods for working with streams.
- StringCqlScript - Class in com.github.nosan.embedded.cassandra.cql
-
A
CqlScriptimplementation that encapsulates a CQL script as a plain string. - StringCqlScript(String) - Constructor for class com.github.nosan.embedded.cassandra.cql.StringCqlScript
-
Constructs a new
StringCqlScriptusing the given CQL script. - StringUtils - Class in com.github.nosan.embedded.cassandra.commons
-
Simple utility methods for dealing with strings.
- systemProperties(Map<String, ?>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra native Java Virtual Machine (JVM) system properties.
T
- toByteArray(InputStream) - Static method in class com.github.nosan.embedded.cassandra.commons.StreamUtils
-
Reads the entire contents of an
InputStreaminto a byte array. - toString() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- toString() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- toString() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- toString() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- toString() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpRequest
-
Returns a string representation of the HTTP request.
- toString() - Method in class com.github.nosan.embedded.cassandra.cql.DefaultCqlDataSet
- toString() - Method in class com.github.nosan.embedded.cassandra.cql.ResourceCqlScript
- toString() - Method in class com.github.nosan.embedded.cassandra.cql.StatementsCqlScript
- toString() - Method in class com.github.nosan.embedded.cassandra.cql.StringCqlScript
- toString() - Method in class com.github.nosan.embedded.cassandra.Version
- toString(InputStream, Charset) - Static method in class com.github.nosan.embedded.cassandra.commons.StreamUtils
- toURI() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- toURI() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Gets a
URIto the underlying resource. - toURL() - Method in class com.github.nosan.embedded.cassandra.commons.ClassPathResource
- toURL() - Method in class com.github.nosan.embedded.cassandra.commons.FileSystemResource
- toURL() - Method in interface com.github.nosan.embedded.cassandra.commons.Resource
-
Gets a
URLto the underlying resource. - toURL() - Method in class com.github.nosan.embedded.cassandra.commons.UrlResource
- tryLock(long, TimeUnit) - Method in class com.github.nosan.embedded.cassandra.commons.FileLock
-
Attempts to acquire an exclusive lock on the file.
U
- UrlResource - Class in com.github.nosan.embedded.cassandra.commons
- UrlResource(URL) - Constructor for class com.github.nosan.embedded.cassandra.commons.UrlResource
-
Constructs a new
UrlResourcewith the specified URL.
V
- values() - Method in class com.github.nosan.embedded.cassandra.commons.web.HttpHeaders
- version(Version) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra version.
- version(String) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the Cassandra version.
- Version - Class in com.github.nosan.embedded.cassandra
-
A representation of a Cassandra version.
W
- WebCassandraDirectoryProvider - Class in com.github.nosan.embedded.cassandra
-
An implementation of
CassandraDirectoryProviderthat downloads and extracts a Cassandra archive from well-known URLs into the specified download directory. - WebCassandraDirectoryProvider() - Constructor for class com.github.nosan.embedded.cassandra.WebCassandraDirectoryProvider
- WebCassandraDirectoryProvider(HttpClient) - Constructor for class com.github.nosan.embedded.cassandra.WebCassandraDirectoryProvider
- WebCassandraDirectoryProvider(HttpClient, Path) - Constructor for class com.github.nosan.embedded.cassandra.WebCassandraDirectoryProvider
-
Creates a new
WebCassandraDirectoryProviderwith providedHttpClientand download directory. - WebCassandraDirectoryProvider(Path) - Constructor for class com.github.nosan.embedded.cassandra.WebCassandraDirectoryProvider
-
Creates a new
WebCassandraDirectoryProviderwithJdkHttpClientand provided download directory. - workingDirectory(IOSupplier<? extends Path>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the
Supplierfor the working directory, which will be invoked each timeCassandraBuilder.build()is called. - WorkingDirectoryCustomizer - Interface in com.github.nosan.embedded.cassandra
-
A callback interface to customize a working directory.
- workingDirectoryCustomizers(WorkingDirectoryCustomizer...) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the
WorkingDirectoryCustomizerto customize the working directory. - workingDirectoryCustomizers(Collection<? extends WorkingDirectoryCustomizer>) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the
WorkingDirectoryCustomizerinstances to customize the working directory. - workingDirectoryDestroyer(WorkingDirectoryDestroyer) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the
WorkingDirectoryDestroyerto handle the cleanup of the working directory. - WorkingDirectoryDestroyer - Interface in com.github.nosan.embedded.cassandra
-
A strategy interface to destroy the working directory.
- workingDirectoryInitializer(WorkingDirectoryInitializer) - Method in class com.github.nosan.embedded.cassandra.CassandraBuilder
-
Sets the
WorkingDirectoryInitializerto be used for initializing the working directory. - WorkingDirectoryInitializer - Interface in com.github.nosan.embedded.cassandra
-
A strategy interface for initializing the working directory.
- wrap(Supplier<? extends T>) - Static method in interface com.github.nosan.embedded.cassandra.commons.function.IOSupplier
-
Wraps the given
Supplierinto anIOSupplier.
All Classes All Packages