public class GraphRestore extends GraphToolBase
| Modifier and Type | Field and Description |
|---|---|
protected File[] |
availableBackupFiles |
static String |
BASE64_PREFIX |
protected int |
currentBackupFileIndex |
protected GeSerializer |
serializer |
protected long |
skipped |
protected Set<String> |
toSkip |
BACKUP_DATETIME_FORMATTER, DEFAULT_GRAPH_BACKUP_EXT, rootDir| Constructor and Description |
|---|
GraphRestore() |
GraphRestore(String rootDir) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream() |
InputStream |
createInputStream(String fileName) |
Optional<String> |
getLastBackupFile(String backupFilePrefix) |
protected void |
jsonToProperties(org.json.JSONObject jsonObject,
ElementBuilder e) |
protected Visibility |
jsonToVisibility(org.json.JSONObject jsonObject) |
static void |
main(String[] args) |
long |
restore(Graph graph,
InputStream in,
Authorizations authorizations,
long nrRestored) |
protected void |
run(String[] args) |
getAbsoluteFilePath, getAuthorizations, getGraphprotected GeSerializer serializer
protected int currentBackupFileIndex
protected File[] availableBackupFiles
protected long skipped
public static final String BASE64_PREFIX
public GraphRestore()
public GraphRestore(String rootDir)
protected void run(String[] args) throws Exception
run in class GraphToolBaseExceptionpublic InputStream createInputStream() throws FileNotFoundException
FileNotFoundExceptionpublic long restore(Graph graph, InputStream in, Authorizations authorizations, long nrRestored) throws IOException
IOExceptionprotected Visibility jsonToVisibility(org.json.JSONObject jsonObject)
protected void jsonToProperties(org.json.JSONObject jsonObject,
ElementBuilder e)
public InputStream createInputStream(String fileName) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.