public class DirectoryScanner.ReportCompiler extends Object implements Callable<org.apache.hadoop.hdfs.server.datanode.DirectoryScanner.ScanInfoPerBlockPool>
call() method.| Constructor and Description |
|---|
ReportCompiler(org.apache.hadoop.hdfs.server.datanode.DataNode datanode,
FsVolumeSpi volume)
Create a report compiler for the given volume on the given datanode.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hdfs.server.datanode.DirectoryScanner.ScanInfoPerBlockPool |
call()
Run this report compiler thread.
|
void |
throttle()
Called by the thread before each potential disk scan so that a pause
can be optionally inserted to limit the number of scans per second.
|
public ReportCompiler(org.apache.hadoop.hdfs.server.datanode.DataNode datanode,
FsVolumeSpi volume)
datanode - the target datanodevolume - the target volumepublic org.apache.hadoop.hdfs.server.datanode.DirectoryScanner.ScanInfoPerBlockPool call()
throws IOException
call in interface Callable<org.apache.hadoop.hdfs.server.datanode.DirectoryScanner.ScanInfoPerBlockPool>IOException - if the block pool isn't foundpublic void throttle()
throws InterruptedException
DFSConfigKeys.DFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_KEY.InterruptedExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.