public interface PersistentFileTracker extends DiskSpaceChecker
Modifier and Type | Method and Description |
---|---|
long |
commitID()
A positive number incremented on every transaction.
|
void |
delayedFree(DelayedFree bucket,
long createdCommitID)
Notify that we have finished with a bucket and it should be freed after the
next serialization to disk.
|
java.io.File |
getDir()
Get the persistent temp files directory.
|
FilenameGenerator |
getGenerator() |
void |
register(java.io.File file)
While resuming, register a file with the garbage collector so that it doesn't get deleted
when startup has finished and we cleanup the persistent-temp dir.
|
checkDiskSpace
void register(java.io.File file)
long commitID()
void delayedFree(DelayedFree bucket, long createdCommitID)
bucket
- The bucket to free.createdCommitID
- 0 if the bucket was created before the last node restart, otherwise
the return value of commitID() when it was created. If there hasn't been a commit, we can
free the bucket immediately...java.io.File getDir()
FilenameGenerator getGenerator()