Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public RemoteEditLogManifest Call()
 {
     QJournalProtocolProtos.GetEditLogManifestResponseProto ret = this._enclosing.GetProxy
                                                                      ().GetEditLogManifest(this._enclosing.journalId, fromTxnId, inProgressOk);
     // Update the http port, since we need this to build URLs to any of the
     // returned logs.
     this._enclosing.ConstructHttpServerURI(ret);
     return(PBHelper.Convert(ret.GetManifest()));
 }
Пример #2
0
 private void ConstructHttpServerURI(QJournalProtocolProtos.GetEditLogManifestResponseProto
                                     ret)
 {
     if (ret.HasFromURL())
     {
         URI uri = URI.Create(ret.GetFromURL());
         httpServerURL = GetHttpServerURI(uri.GetScheme(), uri.GetPort());
     }
     else
     {
         httpServerURL = GetHttpServerURI("http", ret.GetHttpPort());
     }
 }