public class SnapshotTask extends Object implements Callable<ISnapshotResult>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SnapshotTask.Options |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
static String |
SNAPSHOT_TMP_PREFIX
The prefix for the temporary files used to generate snapshots.
|
static String |
SNAPSHOT_TMP_SUFFIX
The suffix for the temporary files used to generate snapshots.
|
| Constructor and Description |
|---|
SnapshotTask(Journal journal,
ISnapshotFactory snapshotFactory) |
| Modifier and Type | Method and Description |
|---|---|
ISnapshotResult |
call() |
static void |
decompress(File src,
File dst)
Decompress a snapshot onto the specified file.
|
protected static final org.apache.log4j.Logger log
public static final String SNAPSHOT_TMP_PREFIX
public static final String SNAPSHOT_TMP_SUFFIX
public SnapshotTask(Journal journal, ISnapshotFactory snapshotFactory)
public ISnapshotResult call() throws Exception
call in interface Callable<ISnapshotResult>Exceptionpublic static void decompress(File src, File dst) throws IOException
src - The snapshot.dst - The file onto which the decompressed snapshot will be written.IOException - if the source file does not exist.IOException - if the destination file exists and is not empty.IOException - if there is a problem decompressing the source file onto the
destination file.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.