@Override public ModifyCacheDirectiveResponseProto modifyCacheDirective( RpcController controller, ModifyCacheDirectiveRequestProto request) throws ServiceException { try { server.modifyCacheDirective( PBHelper.convert(request.getInfo()), PBHelper.convertCacheFlags(request.getCacheFlags())); return ModifyCacheDirectiveResponseProto.newBuilder().build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public ModifyCacheDirectiveResponseProto modifyCacheDirective( RpcController controller, ModifyCacheDirectiveRequestProto request) throws ServiceException { try { server.modifyCacheDirective( PBHelperClient.convert(request.getInfo()), PBHelperClient.convertCacheFlags(request.getCacheFlags())); return ModifyCacheDirectiveResponseProto.newBuilder().build(); } catch (IOException e) { throw new ServiceException(e); } }