Codota Logo
BlockReceiver$Packet.<init>
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain BlockReceiver$Packet
private void myMethod () {
BlockReceiver$Packet b =
  • Codota IconLinkedList linkedList;linkedList.getFirst()
  • Codota IconDataTransferProtos.Status ackStatus;new Packet(seqno, lastPacketInBlock, offsetInBlock, System.nanoTime(), ackStatus)
  • Smart code suggestions by Codota
}
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: 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();
 }
}
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: 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: 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();
  }
 }
}
org.apache.hadoop.hdfs.server.datanodeBlockReceiver$Packet<init>

Popular methods of BlockReceiver$Packet

  • setPersistent
  • waitForPersistent

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now