@Override public RemoveAclResponseProto removeAcl(RpcController controller, RemoveAclRequestProto req) throws ServiceException { try { server.removeAcl(req.getSrc()); } catch (IOException e) { throw new ServiceException(e); } return VOID_REMOVEACL_RESPONSE; }
@Override public void removeAcl(String src) throws IOException { RemoveAclRequestProto req = RemoveAclRequestProto.newBuilder() .setSrc(src).build(); try { rpcProxy.removeAcl(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }