@Mojo(name="start-cluster",
threadSafe=true,
defaultPhase=PRE_INTEGRATION_TEST)
public class StartCassandraClusterMojo
extends AbstractCqlLoadMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addJdk11Options
If
true, the java options --add-exports and --add-opens will be added to the cassandra start. |
protected File |
cuDataSet
The CassandraUnit dataSet to load.
|
protected int |
startWaitSeconds
How long to wait for Cassandra to be started before finishing the goal.
|
cqlEncoding, useCqlLexeraddMainClasspath, addTestClasspath, cassandraDir, jmxPort, keyspace, listenAddress, logLevel, maxMemory, nativeTransportPort, project, rpcAddress, rpcPort, session, skip, startNativeTransport, stopKey, stopPort, storagePort, systemPropertyVariables| Constructor and Description |
|---|
StartCassandraClusterMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected boolean |
useJdk11Options() |
execCqlFileexecuteCql, readFile, splitStatementsUsingCqlLexercreateCassandraHome, createCassandraHome, createCassandraJar, createCassandraJar, createEnvironmentVars, getToolchain, newJavaCommandLine, newNodetoolCommandLine, newServiceCommandLine, newServiceCommandLine@Parameter(defaultValue="180") protected int startWaitSeconds
@Parameter(defaultValue="${basedir}/src/test/resources/dataSet.xml")
protected File cuDataSet
@Parameter(property="cassandra.addJdk11Options",
defaultValue="false")
protected boolean addJdk11Options
true, the java options --add-exports and --add-opens will be added to the cassandra start. Which
is needed, if cassandra runs with a Java runtime >= 11protected boolean useJdk11Options()
useJdk11Options in class AbstractCassandraMojopublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2011–2022 MojoHaus. All rights reserved.