@Private
public class BlockScanner
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BlockScanner.Servlet |
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
BlockScanner(DataNode datanode) |
|
BlockScanner(DataNode datanode,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addVolumeScanner(FsVolumeReference ref) |
Set up a scanner for the given block pool and volume.
|
long |
getJoinVolumeScannersTimeOutMs() |
|
boolean |
hasAnyRegisteredScanner() |
Returns true if there is any scanner thread registered.
|
boolean |
isEnabled() |
Returns true if the block scanner is enabled.
|
void |
removeAllVolumeScanners() |
Stops and removes all volume scanners.
|
void |
removeVolumeScanner(FsVolumeSpi volume) |
Stops and removes a volume scanner.
|
void |
setJoinVolumeScannersTimeOutMs(long joinScannersTimeOutMs) |
public BlockScanner(DataNode datanode)
public BlockScanner(DataNode datanode, org.apache.hadoop.conf.Configuration conf)
public boolean isEnabled()
public boolean hasAnyRegisteredScanner()
public void addVolumeScanner(FsVolumeReference ref)
ref - A reference to the volume.public void removeVolumeScanner(FsVolumeSpi volume)
volume - The volume to remove.public void removeAllVolumeScanners()
public long getJoinVolumeScannersTimeOutMs()
public void setJoinVolumeScannersTimeOutMs(long joinScannersTimeOutMs)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.