Class ResumeManagerImpl
- java.lang.Object
-
- org.fcrepo.migration.validator.impl.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 Summary
Constructors Constructor Description ResumeManagerImpl(Path resultsDir, boolean acceptAll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(String pid)Test if a PID should be processedvoidcompleted(String pid)Mark that a PID has been processed without exceptionsvoidupdateResumeFile()Update the resume file with all PIDs which have been processed successfully
-
-
-
Constructor Detail
-
ResumeManagerImpl
public ResumeManagerImpl(Path resultsDir, boolean acceptAll)
-
-
Method Detail
-
updateResumeFile
public void updateResumeFile()
Description copied from interface:ResumeManagerUpdate the resume file with all PIDs which have been processed successfully- Specified by:
updateResumeFilein interfaceResumeManager
-
completed
public void completed(String pid)
Description copied from interface:ResumeManagerMark that a PID has been processed without exceptions- Specified by:
completedin interfaceResumeManager- Parameters:
pid- the PID
-
accept
public boolean accept(String pid)
Description copied from interface:ResumeManagerTest if a PID should be processed- Specified by:
acceptin interfaceResumeManager- Parameters:
pid- the PID- Returns:
- true if the PID should be processed
-
-