public class EmbeddedServerHelper extends Object
Constructor and Description |
---|
EmbeddedServerHelper() |
EmbeddedServerHelper(String yamlFile) |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup() |
static void |
cleanupAndLeaveDirs() |
static void |
loadSchemaFromYaml() |
static void |
mkdirs() |
void |
setup()
Set embedded cassandra up and spawn it in a new thread.
|
void |
start() |
void |
stop() |
static void |
teardown() |
public EmbeddedServerHelper()
public EmbeddedServerHelper(String yamlFile)
public void setup() throws org.apache.thrift.transport.TTransportException, IOException, InterruptedException, org.apache.cassandra.config.ConfigurationException
org.apache.thrift.transport.TTransportException
IOException
InterruptedException
org.apache.cassandra.config.ConfigurationException
public void start() throws org.apache.thrift.transport.TTransportException, IOException, InterruptedException, org.apache.cassandra.config.ConfigurationException
org.apache.thrift.transport.TTransportException
IOException
InterruptedException
org.apache.cassandra.config.ConfigurationException
public static void teardown()
public void stop()
public static void cleanupAndLeaveDirs() throws IOException
IOException
public static void cleanup() throws IOException
IOException
public static void mkdirs()
public static void loadSchemaFromYaml()
Copyright © 2013. All Rights Reserved.