Package org.codehaus.mojo.cassandra
Class StopCassandraMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.cassandra.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.AbstractMojoStops a background Cassandra instance.- Author:
- stephenc
-
-
Field Summary
Fields Modifier and Type Field Description protected StringlistenAddressAddress to bind to and tell other Cassandra nodes to connect to.protected intnativeTransportPortport for the CQL native transport to listen for clients on.protected StringstopKeyKey to provide when stopping cassandraprotected intstopPortPort to send stop command over
-
Constructor Summary
Constructors Constructor Description StopCassandraMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
stopPort
@Parameter(property="cassandra.stopPort", defaultValue="8081", required=true) protected int stopPortPort to send stop command over
-
stopKey
@Parameter(property="cassandra.stopKey", defaultValue="cassandra-maven-plugin", required=true) protected String stopKeyKey to provide when stopping cassandra
-
nativeTransportPort
@Parameter(property="cassandra.nativeTransportPort", defaultValue="9042") protected int nativeTransportPortport 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.
-
-