public class PBHelper extends Object
PBHelperClient
.Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto |
convert(BalancerBandwidthCommand bbCmd) |
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.DatanodeProtocolProtos.BlockIdCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockIdCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockKeyProto |
convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.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.DatanodeProtocolProtos.BlockReportContextProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockReportContext context) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockWithLocationsProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlocksWithLocationsProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.CheckpointCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.CheckpointSignatureProto |
convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand) |
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.BlockIdCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto blkIdCmd) |
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.BlockReportContext |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockReportContextProto proto) |
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 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 ReceivedDeletedBlockInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto) |
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.HdfsServerProtos.ExportedBlockKeysProto |
convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys) |
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.HdfsServerProtos.NNHAStatusHeartbeatProto.State |
convert(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState s) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto.NamenodeRoleProto |
convert(HdfsServerConstants.NamenodeRole role) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ReplicaStateProto |
convert(HdfsServerConstants.ReplicaState state) |
static org.apache.hadoop.hdfs.security.token.block.BlockKey |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockKeyProto k) |
static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlocksWithLocationsProto blocks) |
static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockWithLocationsProto b) |
static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.CheckpointSignatureProto s) |
static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ExportedBlockKeysProto keys) |
static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeCommandProto cmd) |
static HdfsServerConstants.NamenodeRole |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto.NamenodeRoleProto role) |
static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto reg) |
static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamespaceInfoProto info) |
static org.apache.hadoop.ha.HAServiceProtocol.HAServiceState |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NNHAStatusHeartbeatProto.State s) |
static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NNHAStatusHeartbeatProto s) |
static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RecoveringBlockProto b) |
static RemoteEditLogManifest |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogManifestProto manifest) |
static RemoteEditLog |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogProto l) |
static HdfsServerConstants.ReplicaState |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ReplicaStateProto state) |
static org.apache.hadoop.hdfs.server.common.StorageInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProto info,
HdfsServerConstants.NodeType type) |
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.proto.HdfsServerProtos.NamenodeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamespaceInfoProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.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.HdfsServerProtos.RemoteEditLogProto |
convert(RemoteEditLog log) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogManifestProto |
convert(RemoteEditLogManifest manifest) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProto |
convert(org.apache.hadoop.hdfs.server.common.StorageInfo info) |
static org.apache.hadoop.hdfs.security.token.block.BlockKey[] |
convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockKeyProto> list) |
static VolumeFailureSummary |
convertVolumeFailureSummary(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.VolumeFailureSummaryProto proto) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.VolumeFailureSummaryProto |
convertVolumeFailureSummary(VolumeFailureSummary volumeFailureSummary) |
public static HdfsServerConstants.NamenodeRole convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto.NamenodeRoleProto role)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto.NamenodeRoleProto convert(HdfsServerConstants.NamenodeRole role)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProto convert(org.apache.hadoop.hdfs.server.common.StorageInfo info)
public static org.apache.hadoop.hdfs.server.common.StorageInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.StorageInfoProto info, HdfsServerConstants.NodeType type)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg)
public static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeRegistrationProto reg)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk)
public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockWithLocationsProto b)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlocksWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks)
public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlocksWithLocationsProto blocks)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockKeyProto convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key)
public static org.apache.hadoop.hdfs.security.token.block.BlockKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockKeyProto k)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ExportedBlockKeysProto convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys)
public static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ExportedBlockKeysProto keys)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.CheckpointSignatureProto convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s)
public static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.CheckpointSignatureProto s)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogProto convert(RemoteEditLog log)
public static RemoteEditLog convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogProto l)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogManifestProto convert(RemoteEditLogManifest manifest)
public static RemoteEditLogManifest convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogManifestProto manifest)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.CheckpointCommandProto convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd)
public static org.apache.hadoop.hdfs.security.token.block.BlockKey[] convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.BlockKeyProto> list)
public static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamespaceInfoProto info)
public static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamenodeCommandProto cmd)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RecoveringBlockProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock b)
public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RecoveringBlockProto b)
public static HdfsServerConstants.ReplicaState convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ReplicaStateProto state)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.ReplicaStateProto convert(HdfsServerConstants.ReplicaState state)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration registration)
public static org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto proto)
public static org.apache.hadoop.hdfs.server.protocol.DatanodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto proto)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto convert(BalancerBandwidthCommand bbCmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto convert(org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.FinalizeCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockIdCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand)
public static org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto keyUpdateCmd)
public static org.apache.hadoop.hdfs.server.protocol.FinalizeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto finalizeCmd)
public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto recoveryCmd)
public static org.apache.hadoop.hdfs.server.protocol.BlockCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto blkCmd)
public static org.apache.hadoop.hdfs.server.protocol.BlockIdCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto blkIdCmd)
public static BalancerBandwidthCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto balancerCmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto convert(ReceivedDeletedBlockInfo receivedDeletedBlockInfo)
public static ReceivedDeletedBlockInfo convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NamespaceInfoProto convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info)
public static org.apache.hadoop.ha.HAServiceProtocol.HAServiceState convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NNHAStatusHeartbeatProto.State s)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NNHAStatusHeartbeatProto.State convert(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState s)
public static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat convert(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NNHAStatusHeartbeatProto s)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.NNHAStatusHeartbeatProto convert(org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat hb)
public static VolumeFailureSummary convertVolumeFailureSummary(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.VolumeFailureSummaryProto proto)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.VolumeFailureSummaryProto convertVolumeFailureSummary(VolumeFailureSummary volumeFailureSummary)
public static org.apache.hadoop.hdfs.server.protocol.JournalInfo convert(org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto info)
public static org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto convert(org.apache.hadoop.hdfs.server.protocol.JournalInfo j)
JournalProtocolProtos.JournalInfoProto
sent from Namenode
to Journal receivers to NamenodeRegistration
.public static org.apache.hadoop.hdfs.server.protocol.BlockReportContext convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockReportContextProto proto)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockReportContextProto convert(org.apache.hadoop.hdfs.server.protocol.BlockReportContext context)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.