Tabnine Logo
DataXceiver.replaceBlock
Code IndexAdd Tabnine to your IDE (free)

How to use
replaceBlock
method
in
org.apache.hadoop.hdfs.server.datanode.DataXceiver

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.DataXceiver.replaceBlock (Showing top 2 results out of 315)

origin: org.jvnet.hudson.hadoop/hadoop-core

 break;
case DataTransferProtocol.OP_REPLACE_BLOCK: // for balancing purpose; send to a destination
 replaceBlock(in);
 datanode.myMetrics.replaceBlockOp.inc(DataNode.now() - startTime);
 break;
origin: com.facebook.hadoop/hadoop-core

 break;
case DataTransferProtocol.OP_REPLACE_BLOCK: // for balancing purpose; send to a destination
 replaceBlock(in);
 datanode.myMetrics.replaceBlockOp.inc(DataNode.now() - startTime);
 break;
org.apache.hadoop.hdfs.server.datanodeDataXceiverreplaceBlock

Javadoc

Receive a block and write it to disk, it then notifies the namenode to remove the copy from the source.

Popular methods of DataXceiver

  • <init>
  • sendResponse
    Utility function for sending a response.
  • updateCurrentThreadName
    Update the current thread's name to contain the current status. Use this only after this receiver ha
  • checkAccess
  • checkAndWaitForBP
    Wait until the BP is registered, upto the configured amount of time. Throws an exception if times ou
  • create
  • elapsed
  • getBufferedOutputStream
    Separated for testing.
  • getOutputStream
  • incrDatanodeNetworkErrors
  • processOp
  • readOp
  • processOp,
  • readOp,
  • releaseSocket,
  • sendOOB,
  • sendShmErrorResponse,
  • sendShmSuccessResponse,
  • writeResponse,
  • writeSuccessWithChecksumInfo,
  • calcPartialBlockChecksum,
  • copyBlock

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JButton (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best IntelliJ 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