Package org.hbase.async

Examples of org.hbase.async.HBaseClient.shutdown()


    final HBaseClient client = Common.getOpt(TestIncrementCoalescing.class,
                                             args);
    try {
      createOrTruncateTable(client, args[0], args[1]);
    } finally {
      client.shutdown().join();
    }
  }

  /** Creates or truncates the given table name. */
  private static void createOrTruncateTable(final HBaseClient client,
View Full Code Here


    final byte[] table = args[0].getBytes();
    final byte[] family = args[1].getBytes();
    try {
      test(client, table, family);
    } finally {
      client.shutdown().join();
    }
  }

  private static volatile boolean failed = false;
  private static final Callback<Exception, Exception> LOG_ERROR =
View Full Code Here

    } catch (Exception e) {
      LOG.error("Unexpected exception caught in main", e);
    }

    System.out.println("Starting shutdown...");
    LOG.debug("Shutdown returned " + client.shutdown().joinUninterruptibly());
    System.out.println("Exiting...");
  }

  private static interface Cmd {
    void execute(HBaseClient client, String[] args) throws Exception;
View Full Code Here

      } catch (DeferredGroupException e) {
        LOG.info(e.getCause().getMessage());
      }
    }

    client.shutdown().joinUninterruptibly();
  }

  static final Logger LOG = LoggerFactory.getLogger(AsyncUsersTool.class);
}
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.