Class RouterNamenodeProtocolTranslatorPB
java.lang.Object
org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB
org.apache.hadoop.hdfs.protocolPB.RouterNamenodeProtocolTranslatorPB
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol,org.apache.hadoop.ipc.ProtocolMetaInterface,org.apache.hadoop.ipc.ProtocolTranslator
public class RouterNamenodeProtocolTranslatorPB
extends org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB
-
Field Summary
Fields inherited from interface org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol
ACT_CHECKPOINT, ACT_SHUTDOWN, ACT_UNKNOWN, FATAL, NOTIFY, versionID -
Constructor Summary
ConstructorsConstructorDescriptionRouterNamenodeProtocolTranslatorPB(org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolPB rpcProxy) -
Method Summary
Modifier and TypeMethodDescriptionvoidendCheckpoint(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration, org.apache.hadoop.hdfs.server.namenode.CheckpointSignature sig) voiderrorReport(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration, int errorCode, String msg) org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeysorg.apache.hadoop.hdfs.server.protocol.BlocksWithLocationsgetBlocks(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanode, long size, long minBlockSize, long timeInterval, org.apache.hadoop.fs.StorageType storageType) org.apache.hadoop.hdfs.server.protocol.RemoteEditLogManifestgetEditLogManifest(long sinceTxId) longlonggetMostRecentNameNodeFileTxId(org.apache.hadoop.hdfs.server.namenode.NNStorage.NameNodeFile nnf) longbooleanbooleanorg.apache.hadoop.hdfs.server.protocol.NamenodeRegistrationregisterSubordinateNamenode(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration) org.apache.hadoop.hdfs.server.namenode.CheckpointSignatureorg.apache.hadoop.hdfs.server.protocol.NamenodeCommandstartCheckpoint(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration) org.apache.hadoop.hdfs.server.protocol.NamespaceInfoMethods inherited from class org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB
close, getUnderlyingProxyObject, isMethodSupported
-
Constructor Details
-
RouterNamenodeProtocolTranslatorPB
public RouterNamenodeProtocolTranslatorPB(org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolPB rpcProxy)
-
-
Method Details
-
getBlocks
public org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations getBlocks(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanode, long size, long minBlockSize, long timeInterval, org.apache.hadoop.fs.StorageType storageType) throws IOException - Specified by:
getBlocksin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getBlocksin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
getBlockKeys
public org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys getBlockKeys() throws IOException- Specified by:
getBlockKeysin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getBlockKeysin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
getTransactionID
- Specified by:
getTransactionIDin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getTransactionIDin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
getMostRecentCheckpointTxId
- Specified by:
getMostRecentCheckpointTxIdin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getMostRecentCheckpointTxIdin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
getMostRecentNameNodeFileTxId
public long getMostRecentNameNodeFileTxId(org.apache.hadoop.hdfs.server.namenode.NNStorage.NameNodeFile nnf) throws IOException - Specified by:
getMostRecentNameNodeFileTxIdin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getMostRecentNameNodeFileTxIdin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
rollEditLog
- Specified by:
rollEditLogin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
rollEditLogin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
versionRequest
- Specified by:
versionRequestin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
versionRequestin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
errorReport
public void errorReport(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration, int errorCode, String msg) throws IOException - Specified by:
errorReportin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
errorReportin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
registerSubordinateNamenode
public org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registerSubordinateNamenode(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration) throws IOException - Specified by:
registerSubordinateNamenodein interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
registerSubordinateNamenodein classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
startCheckpoint
public org.apache.hadoop.hdfs.server.protocol.NamenodeCommand startCheckpoint(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration) throws IOException - Specified by:
startCheckpointin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
startCheckpointin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
endCheckpoint
public void endCheckpoint(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration registration, org.apache.hadoop.hdfs.server.namenode.CheckpointSignature sig) throws IOException - Specified by:
endCheckpointin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
endCheckpointin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
getEditLogManifest
public org.apache.hadoop.hdfs.server.protocol.RemoteEditLogManifest getEditLogManifest(long sinceTxId) throws IOException - Specified by:
getEditLogManifestin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getEditLogManifestin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
isUpgradeFinalized
- Specified by:
isUpgradeFinalizedin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
isUpgradeFinalizedin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
isRollingUpgrade
- Specified by:
isRollingUpgradein interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
isRollingUpgradein classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-
getNextSPSPath
- Specified by:
getNextSPSPathin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Overrides:
getNextSPSPathin classorg.apache.hadoop.hdfs.protocolPB.NamenodeProtocolTranslatorPB- Throws:
IOException
-