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