CachingStrategy.newDropBehind()); throttler.setBandwidth(bytesPerSec); long bytesRead = blockSender.sendBlock(nullStream, null, throttler); resultHandler.handle(block, null); metrics.incrBlocksVerified();
blockSender.sendBlock(out, unbufOut, null);
/** * sendBlock() is used to read block and its metadata and stream the data to * either a client or to another datanode. * * @param out stream to which the block is written to * @param baseStream optional. if non-null, <code>out</code> is assumed to * be a wrapper over this stream. This enables optimizations for * sending the data, e.g. * {@link SocketOutputStream#transferToFully(FileChannel, * long, int)}. * @param throttler for sending data. * @return total bytes reads, including crc. */ public long sendBlock(DataOutputStream out, OutputStream baseStream, DataTransferThrottler throttler) throws IOException { return sendBlock(out, baseStream, throttler, null); }
long read = blockSender.sendBlock(reply, baseStream, dataXceiverServer.balanceThrottler); long duration = Time.monotonicNow() - beginRead;
read = blockSender.sendBlock(out, baseStream, null); // send data long duration = Time.monotonicNow() - beginRead; if (blockSender.didSendEntireByteRange()) {
long read = blockSender.sendBlock(reply, baseStream, dataXceiverServer.balanceThrottler);
long read = blockSender.sendBlock(reply, baseStream, dataXceiverServer.balanceThrottler);
long read = blockSender.sendBlock(out, baseStream, null); // send data
blockSender.sendBlock(out, baseStream, null);
blockSender.sendBlock(out, baseStream, null);
blockSender.sendBlock(out, unbufOut, null);
blockSender.sendBlock(out, baseStream, null);
CachingStrategy.newDropBehind()); throttler.setBandwidth(bytesPerSec); long bytesRead = blockSender.sendBlock(nullStream, null, throttler); resultHandler.handle(block, null); return bytesRead;
new DataOutputStream(new IOUtils.NullOutputStream()); blockSender.sendBlock(out, null, throttler);
new DataOutputStream(new IOUtils.NullOutputStream()); blockSender.sendBlock(out, null, throttler);
read = blockSender.sendBlock(out, baseStream, null); // send data long duration = Time.monotonicNow() - beginRead; if (blockSender.didSendEntireByteRange()) {
long read = blockSender.sendBlock(reply, baseStream, dataXceiverServer.balanceThrottler); long duration = Time.monotonicNow() - beginRead;
read = blockSender.sendBlock(out, baseStream, null); // send data long duration = Time.monotonicNow() - beginRead; if (blockSender.didSendEntireByteRange()) {
CachingStrategy.newDropBehind()); throttler.setBandwidth(bytesPerSec); long bytesRead = blockSender.sendBlock(nullStream, null, throttler); resultHandler.handle(block, null); return bytesRead;
long read = blockSender.sendBlock(reply, baseStream, dataXceiverServer.balanceThrottler); long duration = Time.monotonicNow() - beginRead;