me.prettyprint.hector.testutils
Class EmbeddedServerHelper

java.lang.Object
  extended by me.prettyprint.hector.testutils.EmbeddedServerHelper

public class EmbeddedServerHelper
extends Object

Author:
Ran Tavory (rantav@gmail.com)

Constructor Summary
EmbeddedServerHelper()
           
EmbeddedServerHelper(String yamlFile)
           
 
Method Summary
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.
static void teardown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedServerHelper

public EmbeddedServerHelper()

EmbeddedServerHelper

public EmbeddedServerHelper(String yamlFile)
Method Detail

setup

public void setup()
           throws org.apache.thrift.transport.TTransportException,
                  IOException,
                  InterruptedException,
                  org.apache.cassandra.exceptions.ConfigurationException
Set embedded cassandra up and spawn it in a new thread.

Throws:
org.apache.thrift.transport.TTransportException
IOException
InterruptedException
org.apache.cassandra.exceptions.ConfigurationException

teardown

public static void teardown()

cleanupAndLeaveDirs

public static void cleanupAndLeaveDirs()
                                throws IOException
Throws:
IOException

cleanup

public static void cleanup()
                    throws IOException
Throws:
IOException

mkdirs

public static void mkdirs()

loadSchemaFromYaml

public static void loadSchemaFromYaml()


Copyright © 2013. All Rights Reserved.