Java 类org.apache.hadoop.hbase.protobuf.generated.MasterProtos.StopMasterRequest 实例源码

项目:ditb    文件:MasterRpcServices.java   
@Override
public StopMasterResponse stopMaster(RpcController controller,
    StopMasterRequest request) throws ServiceException {
  LOG.info(master.getClientIdAuditPrefix() + " stop");
  master.stopMaster();
  return StopMasterResponse.newBuilder().build();
}
项目:ditb    文件:HBaseAdmin.java   
/**
 * Shuts down the current HBase master only.
 * Does not shutdown the cluster.
 * @see #shutdown()
 * @throws IOException if a remote or network exception occurs
 */
@Override
public synchronized void stopMaster() throws IOException {
  executeCallable(new MasterCallable<Void>(getConnection()) {
    @Override
    public Void call(int callTimeout) throws ServiceException {
      PayloadCarryingRpcController controller = rpcControllerFactory.newController();
      controller.setCallTimeout(callTimeout);
      controller.setPriority(HConstants.HIGH_QOS);
      master.stopMaster(controller, StopMasterRequest.newBuilder().build());
      return null;
    }
  });
}
项目:pbase    文件:MasterRpcServices.java   
@Override
public StopMasterResponse stopMaster(RpcController controller,
    StopMasterRequest request) throws ServiceException {
  LOG.info(master.getClientIdAuditPrefix() + " stop");
  master.stopMaster();
  return StopMasterResponse.newBuilder().build();
}
项目:pbase    文件:HBaseAdmin.java   
/**
 * Shuts down the current HBase master only.
 * Does not shutdown the cluster.
 * @see #shutdown()
 * @throws IOException if a remote or network exception occurs
 */
@Override
public synchronized void stopMaster() throws IOException {
  executeCallable(new MasterCallable<Void>(getConnection()) {
    @Override
    public Void call(int callTimeout) throws ServiceException {
      master.stopMaster(null, StopMasterRequest.newBuilder().build());
      return null;
    }
  });
}
项目:HIndex    文件:HMaster.java   
@Override
public StopMasterResponse stopMaster(RpcController controller, StopMasterRequest request)
throws ServiceException {
  LOG.info(getClientIdAuditPrefix() + " stop");
  stopMaster();
  return StopMasterResponse.newBuilder().build();
}
项目:HIndex    文件:HBaseAdmin.java   
/**
 * Shuts down the current HBase master only.
 * Does not shutdown the cluster.
 * @see #shutdown()
 * @throws IOException if a remote or network exception occurs
 */
public synchronized void stopMaster() throws IOException {
  executeCallable(new MasterCallable<Void>(getConnection()) {
    @Override
    public Void call() throws ServiceException {
      master.stopMaster(null,StopMasterRequest.newBuilder().build());
      return null;
    }
  });
}
项目:PyroDB    文件:MasterRpcServices.java   
@Override
public StopMasterResponse stopMaster(RpcController controller,
    StopMasterRequest request) throws ServiceException {
  LOG.info(master.getClientIdAuditPrefix() + " stop");
  master.stopMaster();
  return StopMasterResponse.newBuilder().build();
}
项目:PyroDB    文件:HBaseAdmin.java   
/**
 * Shuts down the current HBase master only.
 * Does not shutdown the cluster.
 * @see #shutdown()
 * @throws IOException if a remote or network exception occurs
 */
public synchronized void stopMaster() throws IOException {
  executeCallable(new MasterCallable<Void>(getConnection()) {
    @Override
    public Void call(int callTimeout) throws ServiceException {
      master.stopMaster(null,StopMasterRequest.newBuilder().build());
      return null;
    }
  });
}
项目:c5    文件:HMaster.java   
@Override
public StopMasterResponse stopMaster(RpcController controller, StopMasterRequest request)
throws ServiceException {
  LOG.info(getClientIdAuditPrefix() + " stop");
  stopMaster();
  return StopMasterResponse.newBuilder().build();
}
项目:c5    文件:HBaseAdmin.java   
/**
 * Shuts down the current HBase master only.
 * Does not shutdown the cluster.
 * @see #shutdown()
 * @throws IOException if a remote or network exception occurs
 */
public synchronized void stopMaster() throws IOException {
  executeCallable(new MasterCallable<Void>(getConnection()) {
    @Override
    public Void call() throws ServiceException {
      master.stopMaster(null,StopMasterRequest.newBuilder().build());
      return null;
    }
  });
}