Class OnDemandContainerScanner
java.lang.Object
org.apache.hadoop.ozone.container.ozoneimpl.OnDemandContainerScanner
Class for performing on demand scans of containers.
Note: [OPEN] containers are scanned only for metadata,
[CLOSED, QUASI_CLOSED] containers are scanned for metadata and data.
-
Constructor Summary
ConstructorsConstructorDescriptionOnDemandContainerScanner(ContainerScannerConfiguration conf, ContainerController controller) -
Method Summary
Modifier and TypeMethodDescriptionscanContainer(Container<?> container, String reasonForScan) Triggers an on-demand scan of this container.scanContainerWithoutGap(Container<?> container, String reasonForScan) Triggers an on-demand scan of this container regardless of whether it was recently scanned.voidshutdown()
-
Constructor Details
-
OnDemandContainerScanner
-
-
Method Details
-
scanContainer
Triggers an on-demand scan of this container.- Returns:
- An Optional containing a Future representing the pending scan task if the task is queued. The optional is empty if the task is not queued due to an ongoing scan.
-
scanContainerWithoutGap
Triggers an on-demand scan of this container regardless of whether it was recently scanned.- Returns:
- An Optional containing a Future representing the pending scan task if the task is queued. The optional is empty if the task is not queued due to an ongoing scan.
-
getMetrics
-
shutdown
public void shutdown()
-