Package org.codehaus.mojo.cassandra
Class StartCassandraClusterMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.cassandra.AbstractCassandraMojo
-
- org.codehaus.mojo.cassandra.AbstractCqlExecMojo
-
- org.codehaus.mojo.cassandra.AbstractCqlLoadMojo
-
- org.codehaus.mojo.cassandra.StartCassandraClusterMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="start-cluster", threadSafe=true, defaultPhase=PRE_INTEGRATION_TEST) public class StartCassandraClusterMojo extends AbstractCqlLoadMojo
Starts a Cassandra instance in the background.- Author:
- stephenc
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
addJdk11Options
Iftrue
, the java options --add-exports and --add-opens will be added to the cassandra start.protected int
startWaitSeconds
How long to wait for Cassandra to be started before finishing the goal.-
Fields inherited from class org.codehaus.mojo.cassandra.AbstractCqlExecMojo
cqlEncoding, useCqlLexer
-
Fields inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
addMainClasspath, addTestClasspath, cassandraDir, jmxPort, keyspace, listenAddress, logLevel, maxMemory, nativeTransportPort, project, rpcAddress, session, skip, startNativeTransport, stopKey, stopPort, storagePort, systemPropertyVariables
-
-
Constructor Summary
Constructors Constructor Description StartCassandraClusterMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected boolean
useJdk11Options()
-
Methods inherited from class org.codehaus.mojo.cassandra.AbstractCqlLoadMojo
execCqlFile
-
Methods inherited from class org.codehaus.mojo.cassandra.AbstractCqlExecMojo
executeCql, readFile, splitStatementsUsingCqlLexer
-
Methods inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
createCassandraHome, createCassandraHome, createCassandraJar, createCassandraJar, createEnvironmentVars, getToolchain, newJavaCommandLine, newNodetoolCommandLine, newServiceCommandLine, newServiceCommandLine
-
-
-
-
Field Detail
-
startWaitSeconds
@Parameter(defaultValue="180") protected int startWaitSeconds
How long to wait for Cassandra to be started before finishing the goal. A value of 0 will wait indefinately. A value of -1 will not wait at all.
-
addJdk11Options
@Parameter(property="cassandra.addJdk11Options", defaultValue="false") protected boolean addJdk11Options
Iftrue
, 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 >= 11- Since:
- 3.7
-
-
Method Detail
-
useJdk11Options
protected boolean useJdk11Options()
- Overrides:
useJdk11Options
in classAbstractCassandraMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-