Class ResumeManagerImpl

  • All Implemented Interfaces:
    ResumeManager

    public class ResumeManagerImpl
    extends Object
    implements ResumeManager
    Class which uses a file (resume.txt) in order to track which PIDs have been previously validated and do not need to be processed
    Author:
    shake
    • Constructor Detail

      • ResumeManagerImpl

        public ResumeManagerImpl​(Path resultsDir,
                                 boolean acceptAll)
    • Method Detail

      • updateResumeFile

        public void updateResumeFile()
        Description copied from interface: ResumeManager
        Update the resume file with all PIDs which have been processed successfully
        Specified by:
        updateResumeFile in interface ResumeManager
      • completed

        public void completed​(String pid)
        Description copied from interface: ResumeManager
        Mark that a PID has been processed without exceptions
        Specified by:
        completed in interface ResumeManager
        Parameters:
        pid - the PID
      • accept

        public boolean accept​(String pid)
        Description copied from interface: ResumeManager
        Test if a PID should be processed
        Specified by:
        accept in interface ResumeManager
        Parameters:
        pid - the PID
        Returns:
        true if the PID should be processed