Interface InterQJournalProtocol

All Known Implementing Classes:
InterQJournalProtocolTranslatorPB, JournalNodeRpcServer

@Private public interface InterQJournalProtocol
Protocol used to communicate between JournalNode for journalsync. This is responsible for sending edit log manifest.
  • Field Details

  • Method Details

    • getEditLogManifestFromJournal

      QJournalProtocolProtos.GetEditLogManifestResponseProto getEditLogManifestFromJournal(String jid, String nameServiceId, long sinceTxId, boolean inProgressOk) throws IOException
      Parameters:
      jid - the journal from which to enumerate edits
      sinceTxId - the first transaction which the client cares about
      inProgressOk - whether or not to check the in-progress edit log segment
      Returns:
      a list of edit log segments since the given transaction ID.
      Throws:
      IOException
    • getStorageInfo

      org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProto getStorageInfo(String jid, String nameServiceId) throws IOException
      Get the storage info for the specified journal.
      Parameters:
      jid - the journal identifier
      nameServiceId - the name service id
      Returns:
      the storage info object
      Throws:
      IOException