public class SplitIndexSnapshotManager extends Object
SplitIndexUpgradeTask
to manipulate snapshots from Shared HomeConstructor and Description |
---|
SplitIndexSnapshotManager(LuceneIndexSnapshotManager snapshotManager,
JournalDao journalDao,
ClusterManager clusterManager,
JournalIdentifier contentIdentifier,
JournalIdentifier changeIdentifier) |
Modifier and Type | Method and 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) |
public SplitIndexSnapshotManager(LuceneIndexSnapshotManager snapshotManager, JournalDao journalDao, ClusterManager clusterManager, JournalIdentifier contentIdentifier, JournalIdentifier changeIdentifier)
public boolean needsSnapshotRestoration(File contentDirectory)
public boolean hasSuitableContentSnapshot()
public boolean hasSuitableChangeSnapshot()
public long estimatedUnpackedLatestSnapshotSizeBytes()
public long unpackedFileSize(Path path)
public void restoreLatestContentSnapshot()
public void restoreLatestChangeSnapshot()
public boolean shouldTakeNewSnapshot(File contentDirectory)
public void takeNewSnapshot()
Copyright © 2003–2021 Atlassian. All rights reserved.