Package org.fcrepo.migration.pidlist
Class ResumePidListManager
- java.lang.Object
-
- org.fcrepo.migration.pidlist.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 Summary
Constructors Constructor Description ResumePidListManager(File pidDir, boolean acceptAll)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(String pid)This method - returns false if "accept" has been called less than pidResumeIndex times - returns true if "accept" has been called
-
-
-
Constructor Detail
-
ResumePidListManager
public ResumePidListManager(File pidDir, boolean acceptAll)
Constructor- Parameters:
pidDir- where resume file will be read/createdacceptAll- 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:
acceptin interfacePidListManager- Parameters:
pid- associated with a Fedora Object to potentially be processed- Returns:
- true if Object should be processed
-
-