public class BasicSnapshotFactory extends Object implements ISnapshotFactory
ISnapshotFactory
to be used
with non-HA operations to provide online backup capabilities.
This is exposed via the REST API via the StatusServlet
.Constructor and Description |
---|
BasicSnapshotFactory() |
BasicSnapshotFactory(String file,
boolean compress) |
Modifier and Type | Method and Description |
---|---|
protected String |
getAbsolutePath(String file)
Utility to get the absolute path of a file if passed a relative one.
|
boolean |
getCompress()
When
true the generated snapshot will be compressed. |
String |
getFile() |
File |
getSnapshotFile(IRootBlockView rbv)
For the default implementation don't append the commit point to the file.
|
void |
setCompress(boolean compress) |
void |
setFile(String file) |
public BasicSnapshotFactory(String file, boolean compress)
public BasicSnapshotFactory()
public String getFile()
public void setFile(String file)
public void setCompress(boolean compress)
protected String getAbsolutePath(String file)
file
- public File getSnapshotFile(IRootBlockView rbv) throws IOException
getSnapshotFile
in interface ISnapshotFactory
rbv
- The current root block. The snapshot will be consistent as of
the commit point associated with this root block.IOException
CommitCounterUtility
public boolean getCompress()
ISnapshotFactory
true
the generated snapshot will be compressed.getCompress
in interface ISnapshotFactory
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.