/** @see JournalProtocol#heartbeat */ @Override public HeartbeatResponseProto heartbeat(RpcController controller, HeartbeatRequestProto req) throws ServiceException { try { impl.heartbeat(convert(req.getReqInfo())); } catch (IOException e) { throw new ServiceException(e); } return HeartbeatResponseProto.getDefaultInstance(); }
@Override public void heartbeat(RequestInfo reqInfo) throws IOException { try { rpcProxy.heartbeat(NULL_CONTROLLER, HeartbeatRequestProto.newBuilder() .setReqInfo(convert(reqInfo)) .build()); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }