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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetEditLogManifestFromJournal(String jid, String nameServiceId, long sinceTxId, boolean inProgressOk) org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProtogetStorageInfo(String jid, String nameServiceId) Get the storage info for the specified journal.
-
Field Details
-
versionID
static final long versionID- See Also:
-
-
Method Details
-
getEditLogManifestFromJournal
QJournalProtocolProtos.GetEditLogManifestResponseProto getEditLogManifestFromJournal(String jid, String nameServiceId, long sinceTxId, boolean inProgressOk) throws IOException - Parameters:
jid- the journal from which to enumerate editssinceTxId- the first transaction which the client cares aboutinProgressOk- 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 identifiernameServiceId- the name service id- Returns:
- the storage info object
- Throws:
IOException
-