Tabnine Logo
BlockReceiver$Packet
Code IndexAdd Tabnine to your IDE (free)

How to use
BlockReceiver$Packet
in
org.apache.hadoop.hdfs.server.datanode

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.BlockReceiver$Packet (Showing top 7 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * enqueue the seqno that is still be to acked by the downstream datanode.
 * @param seqno sequence number of the packet
 * @param lastPacketInBlock if true, this is the last packet in block
 * @param offsetInBlock offset of this packet in block
 */
void enqueue(final long seqno, final boolean lastPacketInBlock,
  final long offsetInBlock, final Status ackStatus) {
 final Packet p = new Packet(seqno, lastPacketInBlock, offsetInBlock,
   System.nanoTime(), ackStatus);
 if(LOG.isDebugEnabled()) {
  LOG.debug(myString + ": enqueue " + p);
 }
 synchronized(ackQueue) {
  if (running) {
   ackQueue.addLast(p);
   ackQueue.notifyAll();
  }
 }
}
origin: com.facebook.hadoop/hadoop-core

 pkt.waitForPersistent();
} catch (InterruptedException ine) {
 isInterrupted = true;
origin: com.facebook.hadoop/hadoop-core

ackPacket.setPersistent();
origin: io.prestosql.hadoop/hadoop-apache

/**
 * enqueue the seqno that is still be to acked by the downstream datanode.
 * @param seqno sequence number of the packet
 * @param lastPacketInBlock if true, this is the last packet in block
 * @param offsetInBlock offset of this packet in block
 */
void enqueue(final long seqno, final boolean lastPacketInBlock,
  final long offsetInBlock, final Status ackStatus) {
 final Packet p = new Packet(seqno, lastPacketInBlock, offsetInBlock,
   System.nanoTime(), ackStatus);
 if(LOG.isDebugEnabled()) {
  LOG.debug(myString + ": enqueue " + p);
 }
 synchronized(ackQueue) {
  if (running) {
   ackQueue.addLast(p);
   ackQueue.notifyAll();
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * enqueue the seqno that is still be to acked by the downstream datanode.
 * @param seqno sequence number of the packet
 * @param lastPacketInBlock if true, this is the last packet in block
 * @param offsetInBlock offset of this packet in block
 */
void enqueue(final long seqno, final boolean lastPacketInBlock,
  final long offsetInBlock, final Status ackStatus) {
 final Packet p = new Packet(seqno, lastPacketInBlock, offsetInBlock,
   System.nanoTime(), ackStatus);
 if(LOG.isDebugEnabled()) {
  LOG.debug(myString + ": enqueue " + p);
 }
 synchronized(ackQueue) {
  if (running) {
   ackQueue.addLast(p);
   ackQueue.notifyAll();
  }
 }
}
origin: com.facebook.hadoop/hadoop-core

/**
 * enqueue the seqno that is still be to acked by the downstream datanode.
 * @param seqno
 * @param lastPacketInBlock
 */
synchronized Packet enqueue(long seqno, boolean lastPacketInBlock, long offsetInBlock) {
 if (running) {
  if (LOG.isDebugEnabled()) {
   LOG.debug("PacketResponder " + numTargets + " adding seqno " + seqno
     + " with new offset in Block " + offsetInBlock + " to ack queue.");
  }
  Packet newPacket = new Packet(seqno, lastPacketInBlock, offsetInBlock);
  ackQueue.addLast(newPacket);
  notifyAll();
  return newPacket;
 }
 return null;
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * enqueue the seqno that is still be to acked by the downstream datanode.
 * @param seqno
 * @param lastPacketInBlock
 */
synchronized void enqueue(long seqno, boolean lastPacketInBlock) {
 if (running) {
  LOG.debug("PacketResponder " + numTargets + " adding seqno " + seqno +
       " to ack queue.");
  ackQueue.addLast(new Packet(seqno, lastPacketInBlock));
  notifyAll();
 }
}
org.apache.hadoop.hdfs.server.datanodeBlockReceiver$Packet

Javadoc

This information is cached by the Datanode in the ackQueue.

Most used methods

  • <init>
  • setPersistent
  • waitForPersistent

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
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