Class RouterNamenodeProtocol
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RouterNamenodeProtocol
- All Implemented Interfaces:
org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol
- Direct Known Subclasses:
RouterAsyncNamenodeProtocol
public class RouterNamenodeProtocol
extends Object
implements org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol
Module that implements all the RPC calls in
NamenodeProtocol in the
RouterRpcServer.-
Field Summary
Fields inherited from interface org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol
ACT_CHECKPOINT, ACT_SHUTDOWN, ACT_UNKNOWN, FATAL, NOTIFY, versionID -
Constructor Summary
Constructors -
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 hotBlockTimeInterval, 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.NamespaceInfo
-
Constructor Details
-
RouterNamenodeProtocol
-
-
Method Details
-
getBlocks
public org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations getBlocks(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanode, long size, long minBlockSize, long hotBlockTimeInterval, org.apache.hadoop.fs.StorageType storageType) throws IOException - Specified by:
getBlocksin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- 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- Throws:
IOException
-
getTransactionID
- Specified by:
getTransactionIDin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Throws:
IOException
-
getMostRecentCheckpointTxId
- Specified by:
getMostRecentCheckpointTxIdin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- 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- Throws:
IOException
-
rollEditLog
- Specified by:
rollEditLogin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Throws:
IOException
-
versionRequest
- Specified by:
versionRequestin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- 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- 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- 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- 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- 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- Throws:
IOException
-
isUpgradeFinalized
- Specified by:
isUpgradeFinalizedin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Throws:
IOException
-
isRollingUpgrade
- Specified by:
isRollingUpgradein interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Throws:
IOException
-
getNextSPSPath
- Specified by:
getNextSPSPathin interfaceorg.apache.hadoop.hdfs.server.protocol.NamenodeProtocol- Throws:
IOException
-