public java.util.SortedSet<java.io.File> getOwnDumps(int count)
public java.util.SortedSet<java.io.File> getImportDumps(int count)
public java.util.SortedSet<java.io.File> getImportedDumps(int count)
public boolean shiftProcessedDump(java.lang.String dumpName)
move a file from the import directory to the imported directory.
dumpName - only the name, not the full path. The file must be in the import file path
true if the file was shifted successfully, false if file did not exist or cannot be moved
public JsonReader getDumpReader(java.io.File dump)
create a concurrent dump reader for the given file. The reader is either a JsonStreamReader if the
dump file is gzipped or a JsonRandomAccessFile if the file is a plain txt file. Both reader types
must be started as concurrent process which this method does on it's own. The reader process dies
automatically when the file is read completely. When the reader thread dies, it pushed several
JsonReader.POISON_JSON_MAP objects to the reading queue, according to the concurrency defined with the
initializer of this class.
dump - file
a concurrent JsonReader with started Thread wrapper