@Override public CheckAccessResponseProto checkAccess(RpcController controller, CheckAccessRequestProto req) throws ServiceException { try { server.checkAccess(req.getPath(), PBHelper.convert(req.getMode())); } catch (IOException e) { throw new ServiceException(e); } return VOID_CHECKACCESS_RESPONSE; }
@Override public CheckAccessResponseProto checkAccess(RpcController controller, CheckAccessRequestProto req) throws ServiceException { try { server.checkAccess(req.getPath(), PBHelperClient.convert(req.getMode())); } catch (IOException e) { throw new ServiceException(e); } return VOID_CHECKACCESS_RESPONSE; }