Class GarbageCollectorFileState
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.blob.GarbageCollectorFileState
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class GarbageCollectorFileState extends java.lang.Object implements java.io.Closeable
Class for keeping the file system state of the garbage collection. Also, manages any temporary files needed as well as external sorting.
-
-
Constructor Summary
Constructors Constructor Description GarbageCollectorFileState(java.lang.String root)
Instantiates a new garbage collector file state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Completes the process by deleting the files.java.io.File
getAvailableRefs()
Gets the file storing the available references.java.io.File
getGarbage()
Gets the storing the garbage.java.io.File
getGcCandidates()
Gets the file storing the gc candidates.java.io.File
getMarkedRefs()
Gets the file storing the marked references.
-
-
-
Constructor Detail
-
GarbageCollectorFileState
public GarbageCollectorFileState(java.lang.String root) throws java.io.IOException
Instantiates a new garbage collector file state.- Parameters:
root
- path of the root directory under which the files created during gc are stored- Throws:
java.io.IOException
-
-
Method Detail
-
getMarkedRefs
public java.io.File getMarkedRefs()
Gets the file storing the marked references.- Returns:
- the marked references
-
getAvailableRefs
public java.io.File getAvailableRefs()
Gets the file storing the available references.- Returns:
- the available references
-
getGcCandidates
public java.io.File getGcCandidates()
Gets the file storing the gc candidates.- Returns:
- the gc candidates
-
getGarbage
public java.io.File getGarbage()
Gets the storing the garbage.- Returns:
- the garbage
-
close
public void close() throws java.io.IOException
Completes the process by deleting the files.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
-