public class ChangedList extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
addChangedFile(ChangedFile changedFile) |
void |
addChangedFile(File changedFile)
Adds a changed file to the list of items to be processed.
|
void |
clear()
Removes all files from the changed list.
|
ChangedFile |
getChangedFile()
Retrieves a changed file for processing and removes it from the list.
|
static ChangedList |
getInstance() |
int |
getListSize()
Gets the current size of the changed list
|
long |
getVersion() |
List<File> |
peek(int maxFiles) |
long |
persist(File persistFile)
Writes out the current state of the ChangeList to the given file.
|
void |
restore(File persistFile)
Restores the state of the ChangedList using the given backup file
|
public static ChangedList getInstance()
public void addChangedFile(File changedFile)
changedFile
- a file which has changed on the file systempublic int getListSize()
protected void addChangedFile(ChangedFile changedFile)
public void clear()
public ChangedFile getChangedFile()
public long getVersion()
public long persist(File persistFile)
persistFile
- file to write state topublic void restore(File persistFile)
persistFile
- file containing previous stateCopyright © 2009–2014 DuraSpace. All rights reserved.