org.apache.hadoop.hdfs.protocolPB
Class PBHelper

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocolPB.PBHelper

public class PBHelper
extends Object

Utilities for converting protobuf classes to and from implementation classes and other helper utilities to help in dealing with protobuf. 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.fs.permission.AclStatus convert(org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto e)
           
static org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto convert(org.apache.hadoop.fs.permission.AclStatus e)
           
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.DatanodeProtocolProtos.BlockIdCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockIdCommand 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.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto convert(CacheDirectiveEntry entry)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto convert(CacheDirectiveInfo.Expiration expiration)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto convert(CacheDirectiveInfo info)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto convert(CacheDirectiveStats stats)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto convert(CachePoolEntry entry)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto convert(CachePoolInfo info)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto convert(CachePoolStats stats)
           
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 CacheDirectiveEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto proto)
           
static CacheDirectiveInfo.Expiration convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto proto)
           
static CacheDirectiveInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto proto)
           
static CacheDirectiveStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto proto)
           
static CachePoolEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto proto)
           
static CachePoolInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto proto)
           
static CachePoolStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto proto)
           
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.RollingUpgradeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeActionProto a)
           
static org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto proto)
           
static HdfsConstants.SafeModeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto 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.HdfsProtos.ChecksumTypeProto convert(org.apache.hadoop.util.DataChecksum.Type type)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto convert(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey bet)
           
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 List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos)
           
static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos, int startIdx)
          Copy from dnInfos to a target of list of same size starting at startIdx.
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo info)
           
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.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 StorageReport convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto p)
           
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 ShortCircuitShm.ShmId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto shmId)
           
static ShortCircuitShm.SlotId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto slotId)
           
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.RollingUpgradeActionProto convert(HdfsConstants.RollingUpgradeAction a)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto convert(HdfsConstants.SafeModeAction 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.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.util.DataChecksum.Type convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto type)
           
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.security.token.block.DataEncryptionKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto bet)
           
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.DatanodeLocalInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto proto)
           
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.protocol.RollingUpgradeStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto proto)
           
static SnapshotDiffReport.DiffReportEntry convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto entry)
           
static SnapshotDiffReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto reportProto)
           
static SnapshottableDirectoryStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto sdlp)
           
static SnapshottableDirectoryStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto sdirStatusProto)
           
static org.apache.hadoop.hdfs.server.common.StorageInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info, HdfsServerConstants.NodeType type)
           
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.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.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto convert(org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo info)
           
static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> convert(org.apache.hadoop.security.proto.SecurityProtos.TokenProto blockToken)
           
static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto convert(ShortCircuitShm.ShmId shmId)
           
static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto convert(ShortCircuitShm.SlotId slotId)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto convert(SnapshotDiffReport.DiffReportEntry entry)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto convert(SnapshotDiffReport report)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto convert(SnapshottableDirectoryStatus status)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto convert(SnapshottableDirectoryStatus[] status)
           
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.security.proto.SecurityProtos.TokenProto convert(org.apache.hadoop.security.token.Token<?> tok)
           
static List<org.apache.hadoop.fs.permission.AclEntry> convertAclEntry(List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> aclSpec)
           
static List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> convertAclEntryProto(List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
           
static org.apache.hadoop.hdfs.security.token.block.BlockKey[] convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list)
           
static int convertCacheFlags(EnumSet<CacheFlag> flags)
           
static EnumSet<CacheFlag> convertCacheFlags(int flags)
           
static int convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag)
           
static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> convertCreateFlag(int 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.security.proto.SecurityProtos.TokenProto 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 org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto convertRollingUpgradeStatus(org.apache.hadoop.hdfs.protocol.RollingUpgradeStatus status)
           
static StorageReport[] convertStorageReports(List<org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto> list)
           
static com.google.protobuf.ByteString getByteString(byte[] bytes)
           
static InputStream vintPrefixed(InputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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,
                                                                       HdfsServerConstants.NodeType type)

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 List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos)

convert

public static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos,
                                                                                                         int startIdx)
Copy from dnInfos to a target of list of same size starting at startIdx.


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.security.proto.SecurityProtos.TokenProto 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.security.proto.SecurityProtos.TokenProto blockToken)

convertDelegationToken

public static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> convertDelegationToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto 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.BlockIdCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockIdCommand 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.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.server.protocol.BlockIdCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto blkIdCmd)

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 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.hdfs.security.token.block.DataEncryptionKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto bet)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto convert(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey bet)

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)

convertCreateFlag

public static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> convertCreateFlag(int flag)

convertCacheFlags

public static int convertCacheFlags(EnumSet<CacheFlag> flags)

convertCacheFlags

public static EnumSet<CacheFlag> convertCacheFlags(int flags)

convert

public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto fs)

convert

public static SnapshottableDirectoryStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto sdirStatusProto)

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.SnapshottableDirectoryStatusProto convert(SnapshottableDirectoryStatus status)

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.RollingUpgradeActionProto convert(HdfsConstants.RollingUpgradeAction a)

convert

public static HdfsConstants.RollingUpgradeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeActionProto a)

convertRollingUpgradeStatus

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto convertRollingUpgradeStatus(org.apache.hadoop.hdfs.protocol.RollingUpgradeStatus status)

convert

public static org.apache.hadoop.hdfs.protocol.RollingUpgradeStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto convert(org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo info)

convert

public static org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto proto)

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 StorageReport convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto p)

convertStorageReports

public static StorageReport[] convertStorageReports(List<org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto> list)

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.


convert

public static SnapshottableDirectoryStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto sdlp)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto convert(SnapshottableDirectoryStatus[] status)

convert

public static SnapshotDiffReport.DiffReportEntry convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto entry)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto convert(SnapshotDiffReport.DiffReportEntry entry)

convert

public static SnapshotDiffReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto reportProto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto convert(SnapshotDiffReport report)

convert

public static org.apache.hadoop.util.DataChecksum.Type convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto type)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto convert(CacheDirectiveInfo info)

convert

public static CacheDirectiveInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto convert(CacheDirectiveInfo.Expiration expiration)

convert

public static CacheDirectiveInfo.Expiration convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto convert(CacheDirectiveStats stats)

convert

public static CacheDirectiveStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto convert(CacheDirectiveEntry entry)

convert

public static CacheDirectiveEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto convert(CachePoolInfo info)

convert

public static CachePoolInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto convert(CachePoolStats stats)

convert

public static CachePoolStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto convert(CachePoolEntry entry)

convert

public static CachePoolEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto convert(org.apache.hadoop.util.DataChecksum.Type type)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo info)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto proto)

vintPrefixed

public static InputStream vintPrefixed(InputStream input)
                                throws IOException
Throws:
IOException

convertAclEntryProto

public static List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> convertAclEntryProto(List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)

convertAclEntry

public static List<org.apache.hadoop.fs.permission.AclEntry> convertAclEntry(List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> aclSpec)

convert

public static org.apache.hadoop.fs.permission.AclStatus convert(org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto e)

convert

public static org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto convert(org.apache.hadoop.fs.permission.AclStatus e)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto convert(ShortCircuitShm.SlotId slotId)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto convert(ShortCircuitShm.ShmId shmId)

convert

public static ShortCircuitShm.SlotId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto slotId)

convert

public static ShortCircuitShm.ShmId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto shmId)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.