@Override public IsFormattedResponseProto isFormatted(RpcController controller, IsFormattedRequestProto request) throws ServiceException { try { boolean ret = impl.isFormatted( convert(request.getJid())); return IsFormattedResponseProto.newBuilder() .setIsFormatted(ret) .build(); } catch (IOException ioe) { throw new ServiceException(ioe); } }
@Override public boolean isFormatted(String journalId) throws IOException { try { IsFormattedRequestProto req = IsFormattedRequestProto.newBuilder() .setJid(convertJournalId(journalId)) .build(); IsFormattedResponseProto resp = rpcProxy.isFormatted( NULL_CONTROLLER, req); return resp.getIsFormatted(); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }