@Override public RestoreFailedStorageResponseProto restoreFailedStorage( RpcController controller, RestoreFailedStorageRequestProto req) throws ServiceException { try { boolean result = server.restoreFailedStorage(req.getArg()); return RestoreFailedStorageResponseProto.newBuilder().setResult(result) .build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public boolean restoreFailedStorage(String arg) throws AccessControlException, IOException{ RestoreFailedStorageRequestProto req = RestoreFailedStorageRequestProto .newBuilder() .setArg(arg).build(); try { return rpcProxy.restoreFailedStorage(null, req).getResult(); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public boolean restoreFailedStorage(String arg) throws IOException{ RestoreFailedStorageRequestProto req = RestoreFailedStorageRequestProto .newBuilder() .setArg(arg).build(); try { return rpcProxy.restoreFailedStorage(null, req).getResult(); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }