Class ErasureCodingWorker
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker
ErasureCodingWorker handles the erasure coding reconstruction work commands.
These commands would be issued from Namenode as part of Datanode's heart beat
response. BPOfferService delegates the work to this class for handling EC
commands.
-
Constructor Summary
ConstructorsConstructorDescriptionErasureCodingWorker(org.apache.hadoop.conf.Configuration conf, DataNode datanode) -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidprocessErasureCodingTasks(Collection<BlockECReconstructionCommand.BlockECReconstructionInfo> ecTasks) Handles the Erasure Coding reconstruction work commands.voidshutDown()
-
Constructor Details
-
ErasureCodingWorker
-
-
Method Details
-
processErasureCodingTasks
public void processErasureCodingTasks(Collection<BlockECReconstructionCommand.BlockECReconstructionInfo> ecTasks) Handles the Erasure Coding reconstruction work commands.- Parameters:
ecTasks- BlockECReconstructionInfo
-
shutDown
public void shutDown() -
getXmitWeight
public float getXmitWeight()
-