Class StopCassandraMojo

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

    @Mojo(name="stop",
          threadSafe=true,
          defaultPhase=POST_INTEGRATION_TEST)
    public class StopCassandraMojo
    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.
      • listenAddress

        @Parameter(defaultValue="127.0.0.1")
        protected String listenAddress
        Address to bind to and tell other Cassandra nodes to connect to. You must change this if you want multiple nodes to be able to communicate! Leaving it blank leaves it up to InetAddress.getLocalHost(). This will always do the Right Thing if the node is properly configured (hostname, name resolution, etc), and the Right Thing is to use the address associated with the hostname (it might not be). Setting this to 0.0.0.0 is always wrong. Do not change this unless you really know what you are doing.
    • Constructor Detail

      • StopCassandraMojo

        public StopCassandraMojo()
    • 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