Class ResumePidListManager

  • All Implemented Interfaces:
    PidListManager

    public class ResumePidListManager
    extends Object
    implements PidListManager
    This class "accepts" PIDs that have not already been migrated.

    The approach taking by this implementation is to record: - the number of objects that have been migrated, and - the PID of the last migrated object

    The assumption is that the order of processed PIDs/Objects is deterministic

    Since:
    2019-11-08
    Author:
    awoods
    • Constructor Detail

      • ResumePidListManager

        public ResumePidListManager​(File pidDir,
                                    boolean acceptAll)
        Constructor
        Parameters:
        pidDir - where resume file will be read/created
        acceptAll - whether to process all pids even if they've been processed before.
    • Method Detail

      • accept

        public boolean accept​(String pid)
        This method - returns false if "accept" has been called less than pidResumeIndex times - returns true if "accept" has been called
        Specified by:
        accept in interface PidListManager
        Parameters:
        pid - associated with a Fedora Object to potentially be processed
        Returns:
        true if Object should be processed