@Private
@Evolving
public class BlockDispatcher
extends java.lang.Object
| Constructor | Description |
|---|---|
BlockDispatcher(int sockTimeout,
int ioFileBuffSize,
boolean connectToDatanodeViaHostname) |
Construct block dispatcher details.
|
| Modifier and Type | Method | Description |
|---|---|---|
BlockMovementStatus |
moveBlock(BlockStorageMovementCommand.BlockMovingInfo blkMovingInfo,
org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslDataTransferClient saslClient,
org.apache.hadoop.hdfs.protocol.ExtendedBlock eb,
java.net.Socket sock,
org.apache.hadoop.hdfs.protocol.datatransfer.sasl.DataEncryptionKeyFactory km,
org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> accessToken) |
Moves the given block replica to the given target node and wait for the
response.
|
public BlockDispatcher(int sockTimeout,
int ioFileBuffSize,
boolean connectToDatanodeViaHostname)
sockTimeout - soTimeoutioFileBuffSize - file io buffer sizeconnectToDatanodeViaHostname - true represents connect via hostname, false otwpublic BlockMovementStatus moveBlock(BlockStorageMovementCommand.BlockMovingInfo blkMovingInfo, org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslDataTransferClient saslClient, org.apache.hadoop.hdfs.protocol.ExtendedBlock eb, java.net.Socket sock, org.apache.hadoop.hdfs.protocol.datatransfer.sasl.DataEncryptionKeyFactory km, org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> accessToken) throws java.io.IOException
blkMovingInfo - block to storage infosaslClient - SASL for DataTransferProtocol on behalf of a clienteb - extended block infosock - target node's socketkm - for creation of an encryption keyaccessToken - connection block access tokenjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.