Package org.codehaus.mojo.cassandra
Class AbstractSchemaCassandraMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.cassandra.AbstractCassandraMojo
-
- org.codehaus.mojo.cassandra.AbstractSchemaCassandraMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DropColumnFamiliesMojo
public abstract class AbstractSchemaCassandraMojo extends AbstractCassandraMojo
Some general operations and contract for Mojo implementations that will interact with the system_* API methods. Manages the Cql connection and delegates to executeOperation on the implementation. Implementations must still implement the execute method of the parent Mojo.- Author:
- zznate
-
-
Field Summary
-
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 AbstractSchemaCassandraMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CqlOperationbuildOperation()voidexecute()Parses the arguments then callsprotected abstract voidparseArguments()-
Methods inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
createCassandraHome, createCassandraHome, createCassandraJar, createCassandraJar, createEnvironmentVars, getToolchain, newJavaCommandLine, newNodetoolCommandLine, newServiceCommandLine, newServiceCommandLine, useJdk11Options
-
-
-
-
Method Detail
-
parseArguments
protected abstract void parseArguments() throws IllegalArgumentException- Throws:
IllegalArgumentException
-
buildOperation
protected abstract CqlOperation buildOperation()
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionParses the arguments then calls- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-