Tabnine Logo
BlockReceiver.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hdfs.server.datanode.BlockReceiver
constructor

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.BlockReceiver.<init> (Showing top 9 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Separated for testing.
 */
@VisibleForTesting
BlockReceiver getBlockReceiver(
  final ExtendedBlock block, final StorageType storageType,
  final DataInputStream in,
  final String inAddr, final String myAddr,
  final BlockConstructionStage stage,
  final long newGs, final long minBytesRcvd, final long maxBytesRcvd,
  final String clientname, final DatanodeInfo srcDataNode,
  final DataNode dn, DataChecksum requestedChecksum,
  CachingStrategy cachingStrategy,
  final boolean allowLazyPersist,
  final boolean pinning,
  final String storageId) throws IOException {
 return new BlockReceiver(block, storageType, in,
   inAddr, myAddr, stage, newGs, minBytesRcvd, maxBytesRcvd,
   clientname, srcDataNode, dn, requestedChecksum,
   cachingStrategy, allowLazyPersist, pinning, storageId);
}
origin: com.facebook.hadoop/hadoop-core

blockReceiver = new BlockReceiver(namespaceId,
  block, proxyReply, proxySock.getRemoteSocketAddress().toString(),
  proxySock.getLocalSocketAddress().toString(),
origin: org.jvnet.hudson.hadoop/hadoop-core

  NetUtils.getInputStream(proxySock), BUFFER_SIZE));
blockReceiver = new BlockReceiver(
  block, proxyReply, proxySock.getRemoteSocketAddress().toString(),
  proxySock.getLocalSocketAddress().toString(),
origin: org.jvnet.hudson.hadoop/hadoop-core

try {
 blockReceiver = new BlockReceiver(block, in, 
   s.getRemoteSocketAddress().toString(),
   s.getLocalSocketAddress().toString(),
origin: com.facebook.hadoop/hadoop-core

try {
 blockReceiver = new BlockReceiver(namespaceid, block, in, 
   s.getRemoteSocketAddress().toString(),
   s.getLocalSocketAddress().toString(),
origin: ch.cern.hadoop/hadoop-hdfs

  checksumInfo.getChecksum());
blockReceiver = new BlockReceiver(block, storageType,
  proxyReply, proxySock.getRemoteSocketAddress().toString(),
  proxySock.getLocalSocketAddress().toString(),
origin: ch.cern.hadoop/hadoop-hdfs

 stage != BlockConstructionStage.PIPELINE_CLOSE_RECOVERY) {
blockReceiver = new BlockReceiver(block, storageType, in,
  peer.getRemoteAddressString(),
  peer.getLocalAddressString(),
origin: io.prestosql.hadoop/hadoop-apache

  checksumInfo.getChecksum());
blockReceiver = new BlockReceiver(block, storageType,
  proxyReply, proxySock.getRemoteSocketAddress().toString(),
  proxySock.getLocalSocketAddress().toString(),
origin: io.prestosql.hadoop/hadoop-apache

 stage != BlockConstructionStage.PIPELINE_CLOSE_RECOVERY) {
blockReceiver = new BlockReceiver(block, storageType, in,
  peer.getRemoteAddressString(),
  peer.getLocalAddressString(),
org.apache.hadoop.hdfs.server.datanodeBlockReceiver<init>

Popular methods of BlockReceiver

  • cleanupBlock
    Cleanup a partial block if this write is for a replication request (and not from a client)
  • close
    close files and release volume reference.
  • computePartialChunkCrc
    reads in the partial crc chunk and computes checksum of pre-existing data in partial chunk.
  • handleMirrorOutError
    While writing to mirrorOut, failure to write to mirror should not affect this datanode unless it is
  • receiveBlock
  • receivePacket
    Receives and processes a packet. It can contain many chunks. returns the number of data bytes that t
  • verifyChunks
    Verify multiple CRC chunks.
  • adjustCrcFilePosition
    Adjust the file pointer in the local meta file so that the last checksum will be overwritten.
  • checksum2long
    Convert a checksum byte array to a long
  • claimReplicaHandler
    The caller claims the ownership of the replica handler.
  • copyLastChunkChecksum
  • flushOrSync
    Flush block data and metadata files to disk.
  • copyLastChunkChecksum,
  • flushOrSync,
  • getReplica,
  • manageWriterOsCache,
  • packetSentInTime,
  • sendOOB,
  • setLastSentTime,
  • shouldVerifyChecksum,
  • translateChunks

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now