Class SplitIndexSnapshotManager
java.lang.Object
com.atlassian.confluence.upgrade.upgradetask.splitindex.SplitIndexSnapshotManager
This class is helping
SplitIndexUpgradeTask
to manipulate snapshots from Shared Home- Since:
- 7.9.0
-
Constructor Summary
ConstructorDescriptionSplitIndexSnapshotManager
(LuceneIndexSnapshotManager snapshotManager, JournalDao journalDao, ClusterManager clusterManager, JournalIdentifier contentIdentifier, JournalIdentifier changeIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
boolean
boolean
needsSnapshotRestoration
(File contentDirectory) void
void
boolean
shouldTakeNewSnapshot
(File contentDirectory) void
long
unpackedFileSize
(Path path)
-
Constructor Details
-
SplitIndexSnapshotManager
public SplitIndexSnapshotManager(LuceneIndexSnapshotManager snapshotManager, JournalDao journalDao, ClusterManager clusterManager, JournalIdentifier contentIdentifier, JournalIdentifier changeIdentifier)
-
-
Method Details
-
needsSnapshotRestoration
-
hasSuitableContentSnapshot
public boolean hasSuitableContentSnapshot() -
hasSuitableChangeSnapshot
public boolean hasSuitableChangeSnapshot() -
estimatedUnpackedLatestSnapshotSizeBytes
public long estimatedUnpackedLatestSnapshotSizeBytes() -
unpackedFileSize
-
restoreLatestContentSnapshot
public void restoreLatestContentSnapshot() -
restoreLatestChangeSnapshot
public void restoreLatestChangeSnapshot() -
shouldTakeNewSnapshot
-
takeNewSnapshot
public void takeNewSnapshot()
-