Package org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos.SetBalancerRunningRequest


   */
  public boolean setBalancerRunning(final boolean on, final boolean synchronous)
  throws MasterNotRunningException, ZooKeeperConnectionException {
    MasterAdminKeepAliveConnection stub = connection.getKeepAliveMasterAdminService();
    try {
      SetBalancerRunningRequest req =
        RequestConverter.buildSetBalancerRunningRequest(on, synchronous);
      return stub.setBalancerRunning(null, req).getPrevBalanceValue();
    } catch (ServiceException se) {
      IOException ioe = ProtobufUtil.getRemoteException(se);
      if (ioe instanceof MasterNotRunningException) {
View Full Code Here


   */
  public boolean setBalancerRunning(final boolean on, final boolean synchronous)
  throws MasterNotRunningException, ZooKeeperConnectionException {
    MasterAdminKeepAliveConnection master = connection.getKeepAliveMasterAdmin();
    try {
      SetBalancerRunningRequest req =
        RequestConverter.buildSetBalancerRunningRequest(on, synchronous);
      return master.setBalancerRunning(null, req).getPrevBalanceValue();
    } catch (ServiceException se) {
      IOException ioe = ProtobufUtil.getRemoteException(se);
      if (ioe instanceof MasterNotRunningException) {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos.SetBalancerRunningRequest

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.