Uses of Interface org.apache.hadoop.hdfs.net.Peer (Apache Hadoop HDFS Client 3.5.0 API)
Description: use: package: org.apache.hadoop.hdfs.net, interface: Peer

# Uses of Interface
org.apache.hadoop.hdfs.net.Peer

Packages that use Peer
Package
Description
org.apache.hadoop.hdfs
org.apache.hadoop.hdfs.client.impl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.hadoop.hdfs.net
org.apache.hadoop.hdfs.protocol.datatransfer.sasl

- ## Uses of Peer in org.apache.hadoop.hdfs

  Methods in org.apache.hadoop.hdfs that return Peer
  Modifier and Type
  Method
  Description
  `Peer`
  PeerCache.`get(DatanodeID dnId, boolean isDomain)`
  Get a cached peer connected to the given DataNode.
  `Peer`
  DFSClient.`newConnectedPeer(InetSocketAddress addr, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, DatanodeID datanodeId)`
  `Peer`
  RemotePeerFactory.`newConnectedPeer(InetSocketAddress addr, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, DatanodeID datanodeId)`
  `static Peer`
  DFSUtilClient.`peerFromSocket(Socket socket)`
  `static Peer`
  DFSUtilClient.`peerFromSocketAndKey(SaslDataTransferClient saslClient, Socket s, DataEncryptionKeyFactory keyFactory, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, DatanodeID datanodeId, int socketTimeoutMs)`
  Methods in org.apache.hadoop.hdfs with parameters of type Peer
  Modifier and Type
  Method
  Description
  `void`
  PeerCache.`put(DatanodeID dnId, Peer peer)`
  Give an unused socket to the cache.

- ## Uses of Peer in org.apache.hadoop.hdfs.client.impl

  Methods in org.apache.hadoop.hdfs.client.impl that return Peer
  Modifier and Type
  Method
  Description
  `Peer`
  BlockReaderRemote.`getPeer()`
  Methods in org.apache.hadoop.hdfs.client.impl with parameters of type Peer
  Modifier and Type
  Method
  Description
  `static BlockReader`
  BlockReaderRemote.`newBlockReader(String file, ExtendedBlock block, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, long startOffset, long len, boolean verifyChecksum, String clientName, Peer peer, DatanodeID datanodeID, PeerCache peerCache, CachingStrategy cachingStrategy, int networkDistance, org.apache.hadoop.conf.Configuration configuration)`
  Create a new BlockReader specifically to satisfy a read.
  Constructors in org.apache.hadoop.hdfs.client.impl with parameters of type Peer
  Modifier
  Constructor
  Description
  `protected`
  `BlockReaderRemote(String file, long blockId, org.apache.hadoop.util.DataChecksum checksum, boolean verifyChecksum, long startOffset, long firstChunkOffset, long bytesToRead, Peer peer, DatanodeID datanodeID, PeerCache peerCache, int networkDistance)`

- ## Uses of Peer in org.apache.hadoop.hdfs.net

  Classes in org.apache.hadoop.hdfs.net that implement Peer
  Modifier and Type
  Class
  Description
  `class`
  `BasicInetPeer`
  Represents a peer that we communicate with by using a basic Socket that has no associated Channel.
  `class`
  `DomainPeer`
  Represents a peer that we communicate with by using blocking I/O on a UNIX domain socket.
  `class`
  `EncryptedPeer`
  Represents a peer that we communicate with by using an encrypted communications medium.
  `class`
  `NioInetPeer`
  Represents a peer that we communicate with by using non-blocking I/O on a Socket.
  Constructors in org.apache.hadoop.hdfs.net with parameters of type Peer
  Modifier
  Constructor
  Description
  ``
  `EncryptedPeer(Peer enclosedPeer, IOStreamPair ios)`

- ## Uses of Peer in org.apache.hadoop.hdfs.protocol.datatransfer.sasl

  Methods in org.apache.hadoop.hdfs.protocol.datatransfer.sasl that return Peer
  Modifier and Type
  Method
  Description
  `Peer`
  SaslDataTransferClient.`peerSend(Peer peer, DataEncryptionKeyFactory encryptionKeyFactory, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> accessToken, DatanodeID datanodeId)`
  Sends client SASL negotiation for a peer if required.
  Methods in org.apache.hadoop.hdfs.protocol.datatransfer.sasl with parameters of type Peer
  Modifier and Type
  Method
  Description
  `static InetAddress`
  DataTransferSaslUtil.`getPeerAddress(Peer peer)`
  Returns InetAddress from peer.
  `Peer`
  SaslDataTransferClient.`peerSend(Peer peer, DataEncryptionKeyFactory encryptionKeyFactory, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> accessToken, DatanodeID datanodeId)`
  Sends client SASL negotiation for a peer if required.