Class StopCassandraClusterMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="stop-cluster",
          threadSafe=true,
          defaultPhase=POST_INTEGRATION_TEST)
    public class StopCassandraClusterMojo
    extends org.apache.maven.plugin.AbstractMojo
    Stops a background Cassandra instance.
    Author:
    stephenc
    • Field Detail

      • stopPort

        @Parameter(property="cassandra.stopPort",
                   defaultValue="8081",
                   required=true)
        protected int stopPort
        Port to send stop command over
      • stopKey

        @Parameter(property="cassandra.stopKey",
                   defaultValue="cassandra-maven-plugin",
                   required=true)
        protected String stopKey
        Key to provide when stopping cassandra
      • nativeTransportPort

        @Parameter(property="cassandra.nativeTransportPort",
                   defaultValue="9042")
        protected int nativeTransportPort
        port for the CQL native transport to listen for clients on.
    • Constructor Detail

      • StopCassandraClusterMojo

        public StopCassandraClusterMojo()
    • Method Detail

      • 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