@InterfaceAudience.Private public class DataBlockScanner extends Object implements Runnable
BlockPoolSliceScanner
is created which runs in a separate
thread to scan the blocks for that block pool. When a BPOfferService
becomes alive or dies, blockPoolScannerMap in this class is updated.Modifier and Type | Class and Description |
---|---|
static class |
DataBlockScanner.Servlet |
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Modifier and Type | Method and Description |
---|---|
void |
addBlock(ExtendedBlock block) |
void |
addBlockPool(String blockPoolId) |
void |
deleteBlock(String poolId,
Block toDelete) |
void |
deleteBlocks(String poolId,
Block[] toDelete) |
void |
printBlockReport(StringBuilder buffer,
boolean summary) |
void |
removeBlockPool(String blockPoolId) |
void |
run() |
void |
shutdown() |
void |
start() |
public void addBlock(ExtendedBlock block)
public void printBlockReport(StringBuilder buffer, boolean summary)
public void shutdown()
public void addBlockPool(String blockPoolId)
public void removeBlockPool(String blockPoolId)
public void start()
Copyright © 2013 Apache Software Foundation. All rights reserved.