@Override public RemoveXAttrResponseProto removeXAttr(RpcController controller, RemoveXAttrRequestProto req) throws ServiceException { try { server.removeXAttr(req.getSrc(), PBHelper.convertXAttr(req.getXAttr())); } catch (IOException e) { throw new ServiceException(e); } return VOID_REMOVEXATTR_RESPONSE; }
@Override public void removeXAttr(String src, XAttr xAttr) throws IOException { RemoveXAttrRequestProto req = RemoveXAttrRequestProto .newBuilder().setSrc(src) .setXAttr(PBHelper.convertXAttrProto(xAttr)).build(); try { rpcProxy.removeXAttr(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public void removeXAttr(String src, XAttr xAttr) throws IOException { RemoveXAttrRequestProto req = RemoveXAttrRequestProto .newBuilder().setSrc(src) .setXAttr(PBHelperClient.convertXAttrProto(xAttr)).build(); try { rpcProxy.removeXAttr(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public RemoveXAttrResponseProto removeXAttr(RpcController controller, RemoveXAttrRequestProto req) throws ServiceException { try { server.removeXAttr(req.getSrc(), PBHelperClient.convertXAttr(req.getXAttr())); } catch (IOException e) { throw new ServiceException(e); } return VOID_REMOVEXATTR_RESPONSE; }