org.apache.hadoop.hdfs.protocolPB
Class PBHelper
java.lang.Object
org.apache.hadoop.hdfs.protocolPB.PBHelper
public class PBHelper
- extends Object
Utilities for converting protobuf classes to and from implementation classes.
Note that when converting from an internal type to protobuf type, the
converter never return null for protobuf type. The check for internal type
being null must be done before calling the convert() method.
Method Summary |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto |
convert(BalancerBandwidthCommand bbCmd)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto |
convert(org.apache.hadoop.hdfs.protocol.Block b)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockCommand cmd)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto |
convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock b)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand cmd)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto |
convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s)
|
static HdfsConstants.DatanodeReportType |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto t)
|
static long[] |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto res)
|
static HdfsConstants.SafeModeAction |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto a)
|
static HdfsConstants.UpgradeAction |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.UpgradeActionProto a)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto |
convert(org.apache.hadoop.fs.ContentSummary cs)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto |
convert(CorruptFileBlocks c)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto |
convert(org.apache.hadoop.hdfs.protocol.DatanodeID dn)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] |
convert(org.apache.hadoop.hdfs.protocol.DatanodeID[] did)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState |
convert(DatanodeInfo.AdminStates inAs)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto |
convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo info)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] |
convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] di)
|
static BalancerBandwidthCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto balancerCmd)
|
static org.apache.hadoop.hdfs.server.protocol.BlockCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto blkCmd)
|
static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto recoveryCmd)
|
static org.apache.hadoop.hdfs.server.protocol.DatanodeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto proto)
|
static org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto proto)
|
static DatanodeStorage |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto s)
|
static org.apache.hadoop.hdfs.server.protocol.FinalizeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto finalizeCmd)
|
static org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto keyUpdateCmd)
|
static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto s)
|
static ReceivedDeletedBlockInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto)
|
static org.apache.hadoop.hdfs.server.protocol.UpgradeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.UpgradeCommandProto upgradeCmd)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto |
convert(org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration registration)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto |
convert(DatanodeStorage s)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto |
convert(org.apache.hadoop.hdfs.protocol.DirectoryListing d)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto |
convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto |
convert(org.apache.hadoop.hdfs.protocol.ExtendedBlock b)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.FinalizeCommand cmd)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto |
convert(org.apache.hadoop.fs.permission.FsPermission p)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto |
convert(org.apache.hadoop.fs.FsServerDefaults fs)
|
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto |
convert(HdfsConstants.DatanodeReportType t)
|
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto |
convert(HdfsConstants.SafeModeAction a)
|
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.UpgradeActionProto |
convert(HdfsConstants.UpgradeAction a)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto |
convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus fs)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] |
convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] fs)
|
static org.apache.hadoop.hdfs.security.token.block.BlockKey |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto k)
|
static org.apache.hadoop.hdfs.protocol.Block |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto b)
|
static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto blocks)
|
static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTokenIdentifierProto blockToken)
|
static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto b)
|
static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto s)
|
static org.apache.hadoop.fs.ContentSummary |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto cs)
|
static CorruptFileBlocks |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto c)
|
static org.apache.hadoop.hdfs.protocol.DatanodeID |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto dn)
|
static org.apache.hadoop.hdfs.protocol.DatanodeID[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] did)
|
static DatanodeInfo.AdminStates |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState adminState)
|
static org.apache.hadoop.hdfs.protocol.DatanodeInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto di)
|
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] di)
|
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfosProto datanodeInfosProto)
|
static org.apache.hadoop.hdfs.protocol.DirectoryListing |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto dl)
|
static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto keys)
|
static org.apache.hadoop.hdfs.protocol.ExtendedBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto eb)
|
static org.apache.hadoop.fs.permission.FsPermission |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto p)
|
static org.apache.hadoop.fs.FsServerDefaults |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto fs)
|
static org.apache.hadoop.hdfs.protocol.HdfsFileStatus |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto fs)
|
static org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] fs)
|
static org.apache.hadoop.hdfs.protocol.LocatedBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto proto)
|
static org.apache.hadoop.hdfs.protocol.LocatedBlocks |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto lb)
|
static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto cmd)
|
static HdfsServerConstants.NamenodeRole |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto role)
|
static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto reg)
|
static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto info)
|
static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto b)
|
static RemoteEditLogManifest |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto manifest)
|
static RemoteEditLog |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto l)
|
static HdfsServerConstants.ReplicaState |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto state)
|
static org.apache.hadoop.hdfs.server.common.StorageInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info)
|
static org.apache.hadoop.hdfs.server.common.UpgradeStatusReport |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.UpgradeStatusReportProto r)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto |
convert(HdfsServerConstants.NamenodeRole role)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto |
convert(HdfsServerConstants.ReplicaState state)
|
static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> |
convert(int flag)
|
static org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto |
convert(org.apache.hadoop.hdfs.server.protocol.JournalInfo j)
Method used for converting JournalProtocolProtos.JournalInfoProto sent from Namenode
to Journal receivers to NamenodeRegistration . |
static org.apache.hadoop.hdfs.server.protocol.JournalInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto info)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand cmd)
|
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
convert(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> list)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto |
convert(org.apache.hadoop.hdfs.protocol.LocatedBlock b)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto |
convert(org.apache.hadoop.hdfs.protocol.LocatedBlocks lb)
|
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto |
convert(long[] fsStats)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto |
convert(org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat hb)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto |
convert(ReceivedDeletedBlockInfo receivedDeletedBlockInfo)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto |
convert(RemoteEditLog log)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto |
convert(RemoteEditLogManifest manifest)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto |
convert(org.apache.hadoop.hdfs.server.common.StorageInfo info)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto |
convert(StorageReport r)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTokenIdentifierProto |
convert(org.apache.hadoop.security.token.Token<?> tok)
|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.UpgradeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.UpgradeCommand comm)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.UpgradeStatusReportProto |
convert(org.apache.hadoop.hdfs.server.common.UpgradeStatusReport r)
|
static org.apache.hadoop.hdfs.security.token.block.BlockKey[] |
convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list)
|
static int |
convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto |
convertDatanodeInfo(org.apache.hadoop.hdfs.protocol.DatanodeInfo di)
|
static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
convertDelegationToken(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTokenIdentifierProto blockToken)
|
static org.apache.hadoop.hdfs.protocol.LocatedBlock[] |
convertLocatedBlock(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb)
|
static List<org.apache.hadoop.hdfs.protocol.LocatedBlock> |
convertLocatedBlock(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb)
|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] |
convertLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock[] lb)
|
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> |
convertLocatedBlock2(List<org.apache.hadoop.hdfs.protocol.LocatedBlock> lb)
|
static com.google.protobuf.ByteString |
getByteString(byte[] bytes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getByteString
public static com.google.protobuf.ByteString getByteString(byte[] bytes)
convert
public static HdfsServerConstants.NamenodeRole convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto role)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto convert(HdfsServerConstants.NamenodeRole role)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto convert(org.apache.hadoop.hdfs.server.common.StorageInfo info)
convert
public static org.apache.hadoop.hdfs.server.common.StorageInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg)
convert
public static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto reg)
convert
public static org.apache.hadoop.hdfs.protocol.DatanodeID convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto dn)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto convert(org.apache.hadoop.hdfs.protocol.DatanodeID dn)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] convert(org.apache.hadoop.hdfs.protocol.DatanodeID[] did)
convert
public static org.apache.hadoop.hdfs.protocol.DatanodeID[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] did)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto convert(org.apache.hadoop.hdfs.protocol.Block b)
convert
public static org.apache.hadoop.hdfs.protocol.Block convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto b)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk)
convert
public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto b)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks)
convert
public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto blocks)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key)
convert
public static org.apache.hadoop.hdfs.security.token.block.BlockKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto k)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys)
convert
public static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto keys)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s)
convert
public static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto s)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto convert(RemoteEditLog log)
convert
public static RemoteEditLog convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto l)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto convert(RemoteEditLogManifest manifest)
convert
public static RemoteEditLogManifest convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto manifest)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointCommandProto convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd)
convertBlockKeys
public static org.apache.hadoop.hdfs.security.token.block.BlockKey[] convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list)
convert
public static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto info)
convert
public static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto cmd)
convert
public static org.apache.hadoop.hdfs.protocol.ExtendedBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto eb)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto convert(org.apache.hadoop.hdfs.protocol.ExtendedBlock b)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock b)
convert
public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto b)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState convert(DatanodeInfo.AdminStates inAs)
convert
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto di)
convertDatanodeInfo
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convertDatanodeInfo(org.apache.hadoop.hdfs.protocol.DatanodeInfo di)
convert
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] di)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] di)
convert
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> list)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo info)
convert
public static DatanodeInfo.AdminStates convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState adminState)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto convert(org.apache.hadoop.hdfs.protocol.LocatedBlock b)
convert
public static org.apache.hadoop.hdfs.protocol.LocatedBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto proto)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTokenIdentifierProto convert(org.apache.hadoop.security.token.Token<?> tok)
convert
public static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTokenIdentifierProto blockToken)
convertDelegationToken
public static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> convertDelegationToken(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTokenIdentifierProto blockToken)
convert
public static HdfsServerConstants.ReplicaState convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto state)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto convert(HdfsServerConstants.ReplicaState state)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration registration)
convert
public static org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto proto)
convert
public static org.apache.hadoop.hdfs.server.protocol.DatanodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto proto)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto convert(BalancerBandwidthCommand bbCmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto convert(org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand cmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand cmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.FinalizeCommand cmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockCommand cmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand)
convert
public static org.apache.hadoop.hdfs.server.protocol.UpgradeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.UpgradeCommandProto upgradeCmd)
convert
public static org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto keyUpdateCmd)
convert
public static org.apache.hadoop.hdfs.server.protocol.FinalizeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto finalizeCmd)
convert
public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto recoveryCmd)
convert
public static org.apache.hadoop.hdfs.server.protocol.BlockCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto blkCmd)
convert
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfosProto datanodeInfosProto)
convert
public static BalancerBandwidthCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto balancerCmd)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto convert(ReceivedDeletedBlockInfo receivedDeletedBlockInfo)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.UpgradeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.UpgradeCommand comm)
convert
public static ReceivedDeletedBlockInfo convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info)
convertLocatedBlock
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] convertLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock[] lb)
convertLocatedBlock
public static org.apache.hadoop.hdfs.protocol.LocatedBlock[] convertLocatedBlock(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb)
convertLocatedBlock
public static List<org.apache.hadoop.hdfs.protocol.LocatedBlock> convertLocatedBlock(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb)
convertLocatedBlock2
public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> convertLocatedBlock2(List<org.apache.hadoop.hdfs.protocol.LocatedBlock> lb)
convert
public static org.apache.hadoop.hdfs.protocol.LocatedBlocks convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto lb)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto convert(org.apache.hadoop.hdfs.protocol.LocatedBlocks lb)
convert
public static org.apache.hadoop.fs.FsServerDefaults convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto fs)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto convert(org.apache.hadoop.fs.FsServerDefaults fs)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto convert(org.apache.hadoop.fs.permission.FsPermission p)
convert
public static org.apache.hadoop.fs.permission.FsPermission convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto p)
convertCreateFlag
public static int convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag)
convert
public static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> convert(int flag)
convert
public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto fs)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus fs)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] fs)
convert
public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] fs)
convert
public static org.apache.hadoop.hdfs.protocol.DirectoryListing convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto dl)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto convert(org.apache.hadoop.hdfs.protocol.DirectoryListing d)
convert
public static long[] convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto res)
convert
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto convert(long[] fsStats)
convert
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto convert(HdfsConstants.DatanodeReportType t)
convert
public static HdfsConstants.DatanodeReportType convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto t)
convert
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto convert(HdfsConstants.SafeModeAction a)
convert
public static HdfsConstants.SafeModeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto a)
convert
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.UpgradeActionProto convert(HdfsConstants.UpgradeAction a)
convert
public static HdfsConstants.UpgradeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.UpgradeActionProto a)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.UpgradeStatusReportProto convert(org.apache.hadoop.hdfs.server.common.UpgradeStatusReport r)
convert
public static org.apache.hadoop.hdfs.server.common.UpgradeStatusReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.UpgradeStatusReportProto r)
convert
public static CorruptFileBlocks convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto c)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto convert(CorruptFileBlocks c)
convert
public static org.apache.hadoop.fs.ContentSummary convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto cs)
convert
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto convert(org.apache.hadoop.fs.ContentSummary cs)
convert
public static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto s)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto convert(org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat hb)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto convert(DatanodeStorage s)
convert
public static DatanodeStorage convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto s)
convert
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto convert(StorageReport r)
convert
public static org.apache.hadoop.hdfs.server.protocol.JournalInfo convert(org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto info)
convert
public static org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto convert(org.apache.hadoop.hdfs.server.protocol.JournalInfo j)
- Method used for converting
JournalProtocolProtos.JournalInfoProto
sent from Namenode
to Journal receivers to NamenodeRegistration
.
Copyright © 2012 Apache Software Foundation. All Rights Reserved.