public class DefaultIndexSnapshotOperator extends Object implements IndexSnapshotOperator
Modifier and Type | Field and Description |
---|---|
static int |
BACKUP_COUNT |
static String |
DEFAULT_DATE_FORMAT |
Constructor and Description |
---|
DefaultIndexSnapshotOperator(FileStores fileStores,
IndexUtils indexUtils) |
Modifier and Type | Method and Description |
---|---|
String |
getDestinationDirectory() |
List<String> |
listIndexSnapshots()
Lists absolute paths to currently available index snapshots.
|
String |
performIndexSnapshotBackupAndCleanup()
Creates a snapshot of jira index.
|
String |
performIndexSnapshotBackupAndCleanup(int backupCount)
Creates a snapshot of jira index.
|
public static final String DEFAULT_DATE_FORMAT
public static final int BACKUP_COUNT
public DefaultIndexSnapshotOperator(FileStores fileStores, IndexUtils indexUtils)
public String performIndexSnapshotBackupAndCleanup(int backupCount)
IndexSnapshotOperator
performIndexSnapshotBackupAndCleanup
in interface IndexSnapshotOperator
backupCount
- number of most recent snapshots to stay after a cleanuppublic String performIndexSnapshotBackupAndCleanup()
IndexSnapshotOperator
BACKUP_COUNT
of most recent snapshots is persisted.performIndexSnapshotBackupAndCleanup
in interface IndexSnapshotOperator
public List<String> listIndexSnapshots()
IndexSnapshotOperator
listIndexSnapshots
in interface IndexSnapshotOperator
public String getDestinationDirectory()
Copyright © 2002-2022 Atlassian. All Rights Reserved.