public class IndexSnapshotManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexSnapshotManager.UpcomingSnapshotInfo
Class holding information about pending snapshot
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SNAPSHOT_COMPLETE_FILENAME
Name of file created in a snapshot directory when it is known to be complete
|
static java.lang.String |
SNAPSHOT_DO_NOT_DELETE_FILENAME
Name of file which can be place inside a snapshot directory when it must not be deleted.
|
static java.lang.String |
SNAPSHOTS_DIRNAME
Name of directory in WEB-INF/data in which snaphots are stored
|
Modifier and Type | Method and Description |
---|---|
IndexSnapshotManager.UpcomingSnapshotInfo |
createSnapshot()
Request asynchronous creation of a new snapshot of all search engine.
|
static IndexSnapshotManager |
getInstance() |
java.io.File |
getLastCompletedSnapshotDirectory()
Retrieve the last snapshot directory which is complete.
|
boolean |
isSnapshotComplete(java.io.File snapshotDir)
Check if the specified snaphot is complete
|
public static final java.lang.String SNAPSHOTS_DIRNAME
public static final java.lang.String SNAPSHOT_COMPLETE_FILENAME
public static final java.lang.String SNAPSHOT_DO_NOT_DELETE_FILENAME
public static IndexSnapshotManager getInstance()
public java.io.File getLastCompletedSnapshotDirectory()
public boolean isSnapshotComplete(java.io.File snapshotDir)
snapshotDir
- the directory to checkpublic IndexSnapshotManager.UpcomingSnapshotInfo createSnapshot()
Copyright © 2001-2021 Jalios SA. All Rights Reserved.