Package voldemort.client.protocol.admin

Examples of voldemort.client.protocol.admin.AdminClientConfig


            /* connect to cluster through admin port */
            if(logger.isInfoEnabled()) {
                logger.info("Connecting to bootstrap server: " + url);
            }
            AdminClient adminClient = new AdminClient(url,
                    new AdminClientConfig(),
                    new ClientConfig());
            adminClients.add(adminClient);
            /* get Cluster */
            Cluster cluster = adminClient.getAdminClientCluster();
            clusterMap.put(url, cluster);
View Full Code Here


  private void waitForBootstrap() {
    for (Instance instance : cluster.getInstances()) {
      while (true) {
        try {
          String url = "tcp://" + instance.getPublicAddress().getHostAddress() + ":" + ADMIN_PORT;
          AdminClient client = new AdminClient(url, new AdminClientConfig());
          client.getAdminClientCluster();
          break;
        } catch (Exception e) {
          System.out.print(".");
          try {
View Full Code Here

  @Test(timeout = TestConstants.ITEST_TIMEOUT)
  public void testInstances() throws Exception {
    Set<Instance> instances = cluster.getInstances();
    String url = "tcp://" + instances.iterator().next().getPublicAddress().getHostAddress() + ":" + ADMIN_PORT;
    AdminClient client = new AdminClient(url, new AdminClientConfig());
    voldemort.cluster.Cluster c = client.getAdminClientCluster();
 
    List<String> voldemortBasedHosts = new ArrayList<String>();

    for (Node node : c.getNodes())
View Full Code Here

    }

    private AdminClientConfig detectConfig(String path) {
        if (path != null) {
            try {
                return new AdminClientConfig(PropertiesUtils.loadFromClasspathResource(this.getClass(), path));
            } catch (IOException e) {
                logger.error("[VOLDEMORT ERROR] Properties file cannot be loaded due to errors", e);
            }
        }
        return new AdminClientConfig();

    }
View Full Code Here

  private void waitForBootstrap() {
    for (Instance instance : cluster.getInstances()) {
      while (true) {
        try {
          String url = "tcp://" + instance.getPublicAddress().getHostAddress() + ":" + ADMIN_PORT;
          AdminClient client = new AdminClient(url, new AdminClientConfig());
          client.getAdminClientCluster();
          break;
        } catch (Exception e) {
          System.out.print(".");
          try {
View Full Code Here

  @Test
  public void testInstances() throws Exception {
    Set<Instance> instances = cluster.getInstances();
    String url = "tcp://" + instances.iterator().next().getPublicAddress().getHostAddress() + ":" + ADMIN_PORT;
    AdminClient client = new AdminClient(url, new AdminClientConfig());
    voldemort.cluster.Cluster c = client.getAdminClientCluster();
 
    List<String> voldemortBasedHosts = new ArrayList<String>();

    for (Node node : c.getNodes())
View Full Code Here

TOP

Related Classes of voldemort.client.protocol.admin.AdminClientConfig

Copyright © 2018 www.massapicom. 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.