Examples of dropKeyspace()


Examples of com.netflix.astyanax.Cluster.dropKeyspace()

        if (TEST_INIT_KEYSPACE) {
            Cluster cluster = clusterContext.getEntity();
            try {
                LOG.info("Dropping keyspace: " + TEST_KEYSPACE_NAME);
                cluster.dropKeyspace(TEST_KEYSPACE_NAME);
                Thread.sleep(10000);
            } catch (ConnectionException e) {
                LOG.warn(e.getMessage());
            }
View Full Code Here

Examples of com.netflix.astyanax.Keyspace.dropKeyspace()

        }
      } finally {

        try {
          if (ks != null) {
            ks.dropKeyspace();
          }
        } catch (Exception e) {
          LOG.info(e.getMessage());
        }
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.dropKeyspace()

        , this.getClass().getClassLoader(), "CKeyspaceTestData.js");
    assertNotNull(definition);
    cm.buildKeyspace(definition, false);

    // Drop the keyspace
    cm.dropKeyspace(definition.getName());

    // Make sure it is really dropped
    Session session = cm.getEmptySession();
    boolean caught = false;
    try {
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.dropKeyspace()

    //Build the connection manager
    ConnectionManager cm = getConnectionManager();

    //This test requires that the keyspace be dropped before running
    cm.dropKeyspace(OldKeyspaceDefinition.getName());
    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    //Rebuild the keyspace and get the object mapper
    cm.buildKeyspace(OldKeyspaceDefinition, true);
    ObjectMapper om = cm.getObjectMapper(OldKeyspaceDefinition.getName());
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.dropKeyspace()

    //Build the connection manager
    ConnectionManager cm = getConnectionManager();

    //This test requires that the keyspace be dropped before running
    cm.dropKeyspace(OldKeyspaceDefinition.getName());
    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    //Rebuild the keyspace and get the object mapper
    cm.buildKeyspace(OldKeyspaceDefinition, true);
    ObjectMapper om = cm.getObjectMapper(OldKeyspaceDefinition.getName());
View Full Code Here

Examples of com.pardot.rhombus.helpers.ConnectionManagerTester.dropKeyspace()

  public void testPreferRhombusStorageDefinition() throws Exception {
    // Set up a connection manager
    ConnectionManagerTester cm = getConnectionManager();

    // Manually drop our Rhombus keyspace
    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    // Manually drop the functional keyspace if it exists
    CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class
        , this.getClass().getClassLoader(), "CKeyspaceTestData.js");
    cm.dropKeyspace(definition.getName());
View Full Code Here

Examples of com.pardot.rhombus.helpers.ConnectionManagerTester.dropKeyspace()

    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    // Manually drop the functional keyspace if it exists
    CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class
        , this.getClass().getClassLoader(), "CKeyspaceTestData.js");
    cm.dropKeyspace(definition.getName());

    // Build the keyspace from the base definition
    cm.buildKeyspace(definition, false);

    // Simulate a new process interacting with this Rhombus data by tearing down the cluster
View Full Code Here

Examples of com.pardot.rhombus.helpers.ConnectionManagerTester.dropKeyspace()

  public void testGetKeyspaceFromRhombusStorage() throws Exception {
    // Set up a connection manager
    ConnectionManagerTester cm = getConnectionManager();

    // Manually drop our Rhombus keyspace
    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    // Manually drop the functional keyspace if it exists
    CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class
        , this.getClass().getClassLoader(), "CKeyspaceTestData.js");
    cm.dropKeyspace(definition.getName());
View Full Code Here

Examples of com.pardot.rhombus.helpers.ConnectionManagerTester.dropKeyspace()

    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    // Manually drop the functional keyspace if it exists
    CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class
        , this.getClass().getClassLoader(), "CKeyspaceTestData.js");
    cm.dropKeyspace(definition.getName());

    // Build the keyspace from the base definition
    cm.buildKeyspace(definition, false);

    // Simulate a new process interacting with this Rhombus data by tearing down the cluster
View Full Code Here

Examples of com.pardot.rhombus.helpers.ConnectionManagerTester.dropKeyspace()

  public void testRhombusKeyspaceCreatedIfNotExists() throws Exception {
    // Set up a connection manager
    ConnectionManagerTester cm = getConnectionManager();

    // Manually drop our Rhombus keyspace
    cm.dropKeyspace(cm.getRhombusKeyspaceName());

    // Get the Rhombus object mapper
    CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class
        , this.getClass().getClassLoader(), "CKeyspaceTestData.js");
    ObjectMapper om = cm.getRhombusObjectMapper(definition);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.