Examples of describeKeyspaces()


Examples of me.prettyprint.hector.api.Cluster.describeKeyspaces()

    String clusterName = "TestClusterNotConnected";
    String host = "localhost:9172";
    DataLoader dataLoader = new DataLoader(clusterName, host);
    Cluster cluster = dataLoader.getCluster();
    try {
      cluster.describeKeyspaces();
      fail();
    } catch (HectorException e) {
      /* nothing to do it's what we want */
    }
  }
 
View Full Code Here

Examples of me.prettyprint.hector.api.Cluster.describeKeyspaces()

  public void shouldBeToConnected() {
    String clusterName = "TestCluster2";
    String host = "localhost:9171";
    DataLoader dataLoader = new DataLoader(clusterName, host);
    Cluster cluster = dataLoader.getCluster();
    assertThat(cluster.describeKeyspaces(), notNullValue());
    assertThat(cluster.describeKeyspace("system"), notNullValue());
    assertThat(cluster.describeKeyspace("system").getReplicationFactor(), is(1));
    assertThat(cluster.describeKeyspace("system").getName(), is("system"));
  }
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.