Class SplitIndexSnapshotManager
- java.lang.Object
-
- com.atlassian.confluence.upgrade.upgradetask.splitindex.SplitIndexSnapshotManager
-
public class SplitIndexSnapshotManager extends Object
This class is helpingSplitIndexUpgradeTaskto manipulate snapshots from Shared Home- Since:
- 7.9.0
-
-
Constructor Summary
Constructors Constructor Description SplitIndexSnapshotManager(LuceneIndexSnapshotManager snapshotManager, JournalDao journalDao, ClusterManager clusterManager, JournalIdentifier contentIdentifier, JournalIdentifier changeIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longestimatedUnpackedLatestSnapshotSizeBytes()booleanhasSuitableChangeSnapshot()booleanhasSuitableContentSnapshot()booleanneedsSnapshotRestoration(File contentDirectory)voidrestoreLatestChangeSnapshot()voidrestoreLatestContentSnapshot()booleanshouldTakeNewSnapshot(File contentDirectory)voidtakeNewSnapshot()longunpackedFileSize(Path path)
-
-
-
Constructor Detail
-
SplitIndexSnapshotManager
public SplitIndexSnapshotManager(LuceneIndexSnapshotManager snapshotManager, JournalDao journalDao, ClusterManager clusterManager, JournalIdentifier contentIdentifier, JournalIdentifier changeIdentifier)
-
-
Method Detail
-
needsSnapshotRestoration
public boolean needsSnapshotRestoration(File contentDirectory)
-
hasSuitableContentSnapshot
public boolean hasSuitableContentSnapshot()
-
hasSuitableChangeSnapshot
public boolean hasSuitableChangeSnapshot()
-
estimatedUnpackedLatestSnapshotSizeBytes
public long estimatedUnpackedLatestSnapshotSizeBytes()
-
unpackedFileSize
public long unpackedFileSize(Path path)
-
restoreLatestContentSnapshot
public void restoreLatestContentSnapshot()
-
restoreLatestChangeSnapshot
public void restoreLatestChangeSnapshot()
-
shouldTakeNewSnapshot
public boolean shouldTakeNewSnapshot(File contentDirectory)
-
takeNewSnapshot
public void takeNewSnapshot()
-
-