public class DefaultIndexSnapshotOperator extends Object implements IndexSnapshotOperator
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATE_FORMAT |
Constructor and Description |
---|
DefaultIndexSnapshotOperator(FileStores fileStores,
IndexUtils indexUtils,
org.ofbiz.core.entity.DelegatorInterface delegatorInterface) |
Modifier and Type | Method and Description |
---|---|
List<Path> |
listIndexSnapshots()
Lists absolute paths to currently available index snapshots.
|
String |
performIndexSnapshotBackupAndCleanup()
Creates a snapshot of jira index.
|
String |
performIndexSnapshotBackupAndCleanup(TemporaryFilesProvider temporaryFilesProvider,
String notifyNode)
Creates a snapshot of jira index.
|
public static final String DEFAULT_DATE_FORMAT
public DefaultIndexSnapshotOperator(FileStores fileStores, IndexUtils indexUtils, org.ofbiz.core.entity.DelegatorInterface delegatorInterface)
public String performIndexSnapshotBackupAndCleanup()
IndexSnapshotOperator
IndexUtils.MAX_SNAPSHOTS
(or value override by com.atlassian.jira.config.properties.APKeys#INDEX_SNAPSHOT_COUNT)
of most recent snapshots is persisted.performIndexSnapshotBackupAndCleanup
in interface IndexSnapshotOperator
public String performIndexSnapshotBackupAndCleanup(TemporaryFilesProvider temporaryFilesProvider, String notifyNode)
IndexSnapshotOperator
performIndexSnapshotBackupAndCleanup
in interface IndexSnapshotOperator
temporaryFilesProvider
- - TemporaryFilesProvider
that will be called upon snapshot archive creationnotifyNode
- Node requesting the indexIndexSnapshotOperator.performIndexSnapshotBackupAndCleanup()
public List<Path> listIndexSnapshots()
IndexSnapshotOperator
listIndexSnapshots
in interface IndexSnapshotOperator
Copyright © 2002-2022 Atlassian. All Rights Reserved.