Class GarbageCollectorFileState
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.GarbageCollectorFileState
- All Implemented Interfaces:
Closeable,AutoCloseable
Class for keeping the file system state of the garbage collection.
Also, manages any temporary files needed as well as external sorting.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new garbage collector file state. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Completes the process by deleting the files.Gets the file storing the available references.Gets the storing the garbage.Gets the file storing the gc candidates.Gets the file storing the marked references.
-
Constructor Details
-
GarbageCollectorFileState
Instantiates a new garbage collector file state.- Parameters:
root- path of the root directory under which the files created during gc are stored- Throws:
IOException
-
-
Method Details
-
getMarkedRefs
Gets the file storing the marked references.- Returns:
- the marked references
-
getAvailableRefs
Gets the file storing the available references.- Returns:
- the available references
-
getGcCandidates
Gets the file storing the gc candidates.- Returns:
- the gc candidates
-
getGarbage
Gets the storing the garbage.- Returns:
- the garbage
-
close
Completes the process by deleting the files.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- Signals that an I/O exception has occurred.
-