Class ExternalSPSFilePathCollector

java.lang.Object
org.apache.hadoop.hdfs.server.sps.ExternalSPSFilePathCollector
All Implemented Interfaces:
FileCollector

@Private public class ExternalSPSFilePathCollector extends Object implements FileCollector
This class is to scan the paths recursively. If file is directory, then it will scan for files recursively. If the file is non directory, then it will just submit the same file to process. This will use file string path representation.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • ExternalSPSFilePathCollector

      public ExternalSPSFilePathCollector(SPSService service)
  • Method Details

    • remainingCapacity

      public int remainingCapacity()
      Returns queue remaining capacity.
    • scanAndCollectFiles

      public void scanAndCollectFiles(long pathId) throws IOException
      Description copied from interface: FileCollector
      This method can be used to scan and collects the files under that directory and adds to the given BlockStorageMovementNeeded.
      Specified by:
      scanAndCollectFiles in interface FileCollector
      Parameters:
      pathId - - file path id
      Throws:
      IOException