@Override public RemoveCachePoolResponseProto removeCachePool(RpcController controller, RemoveCachePoolRequestProto request) throws ServiceException { try { server.removeCachePool(request.getPoolName()); return RemoveCachePoolResponseProto.newBuilder().build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public void removeCachePool(String cachePoolName) throws IOException { try { rpcProxy.removeCachePool(null, RemoveCachePoolRequestProto.newBuilder(). setPoolName(cachePoolName).build()); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }