Class InterQJournalProtocolTranslatorPB
java.lang.Object
org.apache.hadoop.hdfs.qjournal.protocolPB.InterQJournalProtocolTranslatorPB
- All Implemented Interfaces:
Closeable,AutoCloseable,InterQJournalProtocol,org.apache.hadoop.ipc.ProtocolMetaInterface
@Private
@Stable
public class InterQJournalProtocolTranslatorPB
extends Object
implements org.apache.hadoop.ipc.ProtocolMetaInterface, InterQJournalProtocol, Closeable
This class is the client side translator to translate the requests made on
InterQJournalProtocol interfaces to the RPC server implementing
InterQJournalProtocolPB.-
Field Summary
Fields inherited from interface org.apache.hadoop.hdfs.qjournal.protocol.InterQJournalProtocol
versionID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getEditLogManifestFromJournal(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.booleanisMethodSupported(String methodName)
-
Constructor Details
-
InterQJournalProtocolTranslatorPB
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getEditLogManifestFromJournal
public QJournalProtocolProtos.GetEditLogManifestResponseProto getEditLogManifestFromJournal(String jid, String nameServiceId, long sinceTxId, boolean inProgressOk) throws IOException - Specified by:
getEditLogManifestFromJournalin interfaceInterQJournalProtocol- 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
public org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProto getStorageInfo(String jid, String nameServiceId) throws IOException Description copied from interface:InterQJournalProtocolGet the storage info for the specified journal.- Specified by:
getStorageInfoin interfaceInterQJournalProtocol- Parameters:
jid- the journal identifiernameServiceId- the name service id- Returns:
- the storage info object
- Throws:
IOException
-
isMethodSupported
- Specified by:
isMethodSupportedin interfaceorg.apache.hadoop.ipc.ProtocolMetaInterface- Throws:
IOException
-