Package com.atlassian.jira.index.ha
Class DefaultIndexSnapshotOperator
java.lang.Object
com.atlassian.jira.index.ha.DefaultIndexSnapshotOperator
- All Implemented Interfaces:
IndexSnapshotOperator
Default implementation of
IndexSnapshotOperator.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexSnapshotOperator(FileStores fileStores, IndexUtils indexUtils, org.ofbiz.core.entity.DelegatorInterface delegatorInterface, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, JiraProperties jiraProperties) -
Method Summary
Modifier and TypeMethodDescriptionforceCreateSnapshot(TemporaryFilesProvider temporaryFilesProvider, String notifyNode) booleanLists all files representing currently available index snapshots.voidonPluginFrameworkShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) Triggers creation of a jira snapshot index.
-
Field Details
-
DEFAULT_DATE_FORMAT
- See Also:
-
-
Constructor Details
-
DefaultIndexSnapshotOperator
public DefaultIndexSnapshotOperator(FileStores fileStores, IndexUtils indexUtils, org.ofbiz.core.entity.DelegatorInterface delegatorInterface, com.atlassian.beehive.ClusterLockService clusterLockService, @Nonnull com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, JiraProperties jiraProperties)
-
-
Method Details
-
forceCreateSnapshot
- Specified by:
forceCreateSnapshotin interfaceIndexSnapshotOperator
-
forceCreateSnapshot
public IndexSnapshotCreationResult forceCreateSnapshot(TemporaryFilesProvider temporaryFilesProvider, String notifyNode) - Specified by:
forceCreateSnapshotin interfaceIndexSnapshotOperator
-
tryCreateSnapshot
- Specified by:
tryCreateSnapshotin interfaceIndexSnapshotOperator
-
performIndexSnapshotBackupAndCleanupAsync
Description copied from interface:IndexSnapshotOperatorTriggers creation of a jira snapshot index. Does not wait for completion and returns a name of the snapshot to be created.- Specified by:
performIndexSnapshotBackupAndCleanupAsyncin interfaceIndexSnapshotOperator- Returns:
- Status of the attempt to start the index snapshot creation.
-
listIndexSnapshotFiles
Description copied from interface:IndexSnapshotOperatorLists all files representing currently available index snapshots.- Specified by:
listIndexSnapshotFilesin interfaceIndexSnapshotOperator- Returns:
- List of currently available index snapshot files.
-
isIndexSnapshotRunning
public boolean isIndexSnapshotRunning()- Specified by:
isIndexSnapshotRunningin interfaceIndexSnapshotOperator- Returns:
- true if index snapshot is currently being created on any node.
-
onPluginFrameworkShutdown
@EventListener public void onPluginFrameworkShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event)
-