Class SplitIndexSnapshotManager
- java.lang.Object
-
- com.atlassian.confluence.upgrade.upgradetask.splitindex.SplitIndexSnapshotManager
-
public class SplitIndexSnapshotManager extends Object
This class is helpingSplitIndexUpgradeTask
to 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 long
estimatedUnpackedLatestSnapshotSizeBytes()
boolean
hasSuitableChangeSnapshot()
boolean
hasSuitableContentSnapshot()
boolean
needsSnapshotRestoration(File contentDirectory)
void
restoreLatestChangeSnapshot()
void
restoreLatestContentSnapshot()
boolean
shouldTakeNewSnapshot(File contentDirectory)
void
takeNewSnapshot()
long
unpackedFileSize(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()
-
-