public void refreshHFiles(final Table table) throws Throwable {
    final RefreshHFilesProtos.RefreshHFilesRequest request =
      RefreshHFilesProtos.RefreshHFilesRequest.getDefaultInstance();
    table.coprocessorService(RefreshHFilesProtos.RefreshHFilesService.class,
      HConstants.EMPTY_START_ROW, HConstants.EMPTY_END_ROW, new Batch.Call<
        RefreshHFilesProtos.RefreshHFilesService, RefreshHFilesProtos.RefreshHFilesResponse>() {
        @Override
        public RefreshHFilesProtos.RefreshHFilesResponse
          call(RefreshHFilesProtos.RefreshHFilesService refreshHFilesService) throws IOException {
          ServerRpcController controller = new ServerRpcController();
          BlockingRpcCallback<RefreshHFilesProtos.RefreshHFilesResponse> rpcCallback =
            new BlockingRpcCallback<>();
          refreshHFilesService.refreshHFiles(controller, request, rpcCallback);

          if (controller.failedOnException()) {
            throw controller.getFailedOn();
          }

          return rpcCallback.get();
        }
      });
    LOG.debug("Done refreshing HFiles");
  }
Constructor with Conf object
@param cfg the {@link Configuration} object to use
hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/RefreshHFilesClient.java