@Override public GetJournalStateResponseProto getJournalState(String jid) throws IOException { try { GetJournalStateRequestProto req = GetJournalStateRequestProto.newBuilder() .setJid(convertJournalId(jid)) .build(); return rpcProxy.getJournalState(NULL_CONTROLLER, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public GetJournalStateResponseProto getJournalState(String jid) throws IOException { try { GetJournalStateRequestProto req = GetJournalStateRequestProto.newBuilder() .setJid(convertJournalId(jid)) .build(); return rpcProxy.getJournalState(NULL_CONTROLLER, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public GetJournalStateResponseProto getJournalState(String jid, String nameServiceId) throws IOException { try { GetJournalStateRequestProto.Builder req = GetJournalStateRequestProto .newBuilder() .setJid(convertJournalId(jid)); if (nameServiceId != null) { req.setNameServiceId(nameServiceId); } return rpcProxy.getJournalState(NULL_CONTROLLER, req.build()); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }