List of usage examples for org.apache.hadoop.hdfs.protocol.datatransfer BlockConstructionStage TRANSFER_RBW
BlockConstructionStage TRANSFER_RBW
To view the source code for org.apache.hadoop.hdfs.protocol.datatransfer BlockConstructionStage TRANSFER_RBW.
Click Source Link
From source file:com.mellanox.r4h.WriteOprHeader.java
License:Apache License
public WriteOprHeader(ExtendedBlock blk, Token<BlockTokenIdentifier> blockToken, String clientName, DatanodeInfo[] targets, DatanodeInfo source, BlockConstructionStage stage, int pipelineSize, long minBytesRcvd, long maxBytesRcvd, long latestGenerationStamp, DataChecksum requestedChecksum, CachingStrategy cachingStrategy) { this.blk = blk; this.blockToken = blockToken; this.clientName = clientName; this.targets = targets; this.source = source; this.stage = stage; this.pipelineSize = pipelineSize; this.minBytesRcvd = minBytesRcvd; this.maxBytesRcvd = maxBytesRcvd; this.latestGenerationStamp = latestGenerationStamp; this.requestedChecksum = requestedChecksum; this.cachingStrategy = cachingStrategy; isDatanode = clientName.length() == 0; isClient = !isDatanode;//from w w w .jav a2 s. com isTransfer = stage == BlockConstructionStage.TRANSFER_RBW || stage == BlockConstructionStage.TRANSFER_FINALIZED; }
From source file:com.mellanox.r4h.WriteOprHeader.java
License:Apache License
public boolean isTransfer() { return (stage == BlockConstructionStage.TRANSFER_RBW || stage == BlockConstructionStage.TRANSFER_FINALIZED); }