public class GarbageCollectorFileState
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
GarbageCollectorFileState(java.lang.String root)
Instantiates a new garbage collector file state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Completes the process by deleting the files.
|
static java.io.File |
copy(java.io.InputStream stream) |
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.
|
static void |
merge(java.util.List<java.io.File> files,
java.io.File output) |
static void |
sort(java.io.File file)
Sorts the given file externally.
|
static void |
sort(java.io.File file,
java.util.Comparator<java.lang.String> comparator)
Sorts the given file externally with the given comparator.
|
public GarbageCollectorFileState(java.lang.String root)
throws java.io.IOException
root - path of the root directory under which the
files created during gc are storedjava.io.IOExceptionpublic java.io.File getMarkedRefs()
public java.io.File getAvailableRefs()
public java.io.File getGcCandidates()
public java.io.File getGarbage()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - Signals that an I/O exception has occurred.public static void sort(java.io.File file)
throws java.io.IOException
file - file whose contents needs to be sortedjava.io.IOExceptionpublic static void sort(java.io.File file,
java.util.Comparator<java.lang.String> comparator)
throws java.io.IOException
file - file whose contents needs to be sortedcomparator - to comparejava.io.IOExceptionpublic static void merge(java.util.List<java.io.File> files,
java.io.File output)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.File copy(java.io.InputStream stream)
throws java.io.IOException
java.io.IOException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"