@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); } }
@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); } }
@Override public boolean isFormatted(String journalId, String nameServiceId) throws IOException { try { IsFormattedRequestProto.Builder req = IsFormattedRequestProto.newBuilder() .setJid(convertJournalId(journalId)); if (nameServiceId != null) { req.setNameServiceId(nameServiceId); } IsFormattedResponseProto resp = rpcProxy.isFormatted( NULL_CONTROLLER, req.build()); return resp.getIsFormatted(); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }