Class ExternalSPSFilePathCollector
java.lang.Object
org.apache.hadoop.hdfs.server.sps.ExternalSPSFilePathCollector
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns queue remaining capacity.voidscanAndCollectFiles(long pathId) This method can be used to scan and collects the files under that directory and adds to the given BlockStorageMovementNeeded.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ExternalSPSFilePathCollector
-
-
Method Details
-
remainingCapacity
public int remainingCapacity()Returns queue remaining capacity. -
scanAndCollectFiles
Description copied from interface:FileCollectorThis method can be used to scan and collects the files under that directory and adds to the given BlockStorageMovementNeeded.- Specified by:
scanAndCollectFilesin interfaceFileCollector- Parameters:
pathId- - file path id- Throws:
IOException
-