JournalProtocolTranslatorPB@Private
public interface JournalProtocol
| Modifier and Type | Field | Description |
|---|---|---|
static long |
versionID |
This class is used by both the Namenode (client) and BackupNode (server)
to insulate from the protocol serialization.
|
| Modifier and Type | Method | Description |
|---|---|---|
FenceResponse |
fence(JournalInfo journalInfo,
long epoch,
java.lang.String fencerInfo) |
Request to fence any other journal writers.
|
void |
journal(JournalInfo journalInfo,
long epoch,
long firstTxnId,
int numTxns,
byte[] records) |
Journal edit records.
|
void |
startLogSegment(JournalInfo journalInfo,
long epoch,
long txid) |
Notify the BackupNode that the NameNode has rolled its edit logs
and is now writing a new log segment.
|
static final long versionID
void journal(JournalInfo journalInfo, long epoch, long firstTxnId, int numTxns, byte[] records) throws java.io.IOException
EditLogBackupOutputStream in order to synchronize meta-data
changes with the backup namespace image.journalInfo - journal informationepoch - marks beginning a new journal writerfirstTxnId - the first transaction of this batchnumTxns - number of transactionsrecords - byte array containing serialized journal recordsFencedException - if the resource has been fencedjava.io.IOExceptionvoid startLogSegment(JournalInfo journalInfo, long epoch, long txid) throws java.io.IOException
journalInfo - journal informationepoch - marks beginning a new journal writertxid - the first txid in the new logFencedException - if the resource has been fencedjava.io.IOExceptionFenceResponse fence(JournalInfo journalInfo, long epoch, java.lang.String fencerInfo) throws java.io.IOException
journalInfo - journal informationepoch - marks beginning a new journal writerfencerInfo - info about fencer for debugging purposesFencedException - if the resource has been fencedjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.