public final class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
executeThrift(ThriftApiOperation thriftApiOperation)
Call
#executeOperation(Cassandra.Client) on the provided operation |
static String |
merge(String baseYaml,
String glossYaml)
Applies the glossYaml on top of the baseYaml and returns the result.
|
protected static org.apache.commons.exec.DefaultExecuteResultHandler |
startCassandraServer(File cassandraDir,
org.apache.commons.exec.CommandLine commandLine,
Map environment,
org.apache.maven.plugin.logging.Log log)
Starts the Cassandra server.
|
protected static org.apache.commons.exec.DefaultExecuteResultHandler startCassandraServer(File cassandraDir, org.apache.commons.exec.CommandLine commandLine, Map environment, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
cassandraDir - The directory to start the Server process in.commandLine - The command line to use to start the Server process.environment - The environment to start the Server process with.log - The log to send the output to.ExecuteResultHandler for the started process.org.apache.maven.plugin.MojoExecutionException - if something went wrong.public static String merge(String baseYaml, String glossYaml)
baseYaml - the base Yaml.glossYaml - the Yaml to overide the base with.public static void executeThrift(ThriftApiOperation thriftApiOperation) throws org.apache.maven.plugin.MojoExecutionException
#executeOperation(Cassandra.Client) on the provided operationorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2011–2015 MojoHaus. All rights reserved.