Class BackgroundContainerDataScanner
java.lang.Object
org.apache.hadoop.ozone.container.ozoneimpl.AbstractBackgroundContainerScanner
org.apache.hadoop.ozone.container.ozoneimpl.BackgroundContainerDataScanner
- All Implemented Interfaces:
Runnable
Data scanner that full checks a volume. Each volume gets a separate thread.
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundContainerDataScanner(ContainerScannerConfiguration conf, ContainerController controller, HddsVolume volume) -
Method Summary
Modifier and TypeMethodDescriptionvoidscanContainer(Container<?> c) voidshutdown()Shutdown the current container scanning thread.toString()Methods inherited from class org.apache.hadoop.ozone.container.ozoneimpl.AbstractBackgroundContainerScanner
handleRemainingSleep, isAlive, pause, run, runIteration, start, unpause
-
Constructor Details
-
BackgroundContainerDataScanner
public BackgroundContainerDataScanner(ContainerScannerConfiguration conf, ContainerController controller, HddsVolume volume)
-
-
Method Details
-
scanContainer
- Specified by:
scanContainerin classAbstractBackgroundContainerScanner- Throws:
IOExceptionInterruptedException
-
getContainerIterator
- Specified by:
getContainerIteratorin classAbstractBackgroundContainerScanner
-
shutdown
public void shutdown()Description copied from class:AbstractBackgroundContainerScannerShutdown the current container scanning thread. If the thread is already being shutdown, the call will block until the shutdown completes.- Overrides:
shutdownin classAbstractBackgroundContainerScanner
-
getMetrics
- Specified by:
getMetricsin classAbstractBackgroundContainerScanner
-
toString
-