VolumeScannerCBInjector (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.datanode, class: VolumeScannerCBInjector

Package org.apache.hadoop.hdfs.server.datanode

# Class VolumeScannerCBInjector

java.lang.Object
org.apache.hadoop.hdfs.server.datanode.VolumeScannerCBInjector

@VisibleForTesting @Private public class VolumeScannerCBInjector extends Object
Used for injecting call backs in `VolumeScanner` and `BlockScanner` tests. Calls into this are a no-op in production code.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VolumeScannerCBInjector()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static VolumeScannerCBInjector`
  `get()`
  `void`
  `preSavingBlockIteratorTask(VolumeScanner volumeScanner)`
  `static void`
  `set(VolumeScannerCBInjector injector)`
  `void`
  `shutdownCallBack(VolumeScanner volumeScanner)`
  `void`
  `terminationCallBack(VolumeScanner volumeScanner)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### VolumeScannerCBInjector

    public VolumeScannerCBInjector()

- ## Method Details

  - ### get

    public static VolumeScannerCBInjector get()

  - ### set

    public static void set(VolumeScannerCBInjector injector)

  - ### preSavingBlockIteratorTask

    public void preSavingBlockIteratorTask(VolumeScanner volumeScanner)

  - ### shutdownCallBack

    public void shutdownCallBack(VolumeScanner volumeScanner)

  - ### terminationCallBack

    public void terminationCallBack(VolumeScanner volumeScanner)