Search in sources :

Example 1 with RollWALWriterRequest

use of org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.RollWALWriterRequest in project hbase by apache.

the class HBaseAdmin method rollWALWriterImpl.

private RollWALWriterResponse rollWALWriterImpl(final ServerName sn) throws IOException, FailedLogCloseException {
    final AdminService.BlockingInterface admin = this.connection.getAdmin(sn);
    RollWALWriterRequest request = RequestConverter.buildRollWALWriterRequest();
    // TODO: There is no timeout on this controller. Set one!
    HBaseRpcController controller = rpcControllerFactory.newController();
    try {
        return admin.rollWALWriter(controller, request);
    } catch (ServiceException e) {
        throw ProtobufUtil.handleRemoteException(e);
    }
}
Also used : HBaseRpcController(org.apache.hadoop.hbase.ipc.HBaseRpcController) AdminService(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService) ServiceException(org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException) RollWALWriterRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.RollWALWriterRequest)

Aggregations

HBaseRpcController (org.apache.hadoop.hbase.ipc.HBaseRpcController)1 ServiceException (org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException)1 AdminService (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService)1 RollWALWriterRequest (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.RollWALWriterRequest)1