BlockMoveTaskHandler (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.sps, interface: BlockMoveTaskHandler

Package org.apache.hadoop.hdfs.server.namenode.sps

# Interface BlockMoveTaskHandler

All Known Implementing Classes:
  `ExternalSPSBlockMoveTaskHandler`

@Private @Evolving public interface BlockMoveTaskHandler
Interface for implementing different ways of block moving approaches. One can connect directly to DN and request block move, and other can talk NN to schedule via heart-beats.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `submitMoveTask(BlockStorageMovementCommand.BlockMovingInfo blkMovingInfo)`
  This is an interface method to handle the move tasks.

- ## Method Details

  - ### submitMoveTask

    void submitMoveTask(BlockStorageMovementCommand.BlockMovingInfo blkMovingInfo) throws IOException
    This is an interface method to handle the move tasks. BlockMovingInfo must contain the required info to move the block, that source location, destination location and storage types.
    Throws:
      `IOException`