public class SnapshotCreatedMaintenanceTask extends Object implements SystemMaintenanceTask
SystemMaintenanceTask that is created when a node uploads a snapshot of its index to be used by
other nodes in the cluster to replace their indexes.| Constructor and Description |
|---|
SnapshotCreatedMaintenanceTask(String sourceNodeId,
String journalIdentifier,
Long journalEntryId) |
| Modifier and Type | Method and Description |
|---|---|
Optional<JournalEntry> |
convertToJournalEntry(JournalIdentifier journalId)
Convert to journal entry.
|
Long |
getJournalEntryId() |
String |
getJournalIdentifier() |
String |
getSourceNodeId() |
SystemMaintenanceTaskType |
getTaskType() |
static SnapshotCreatedMaintenanceTask |
toTask(JournalEntry journalEntry) |
public static SnapshotCreatedMaintenanceTask toTask(JournalEntry journalEntry)
public Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
ConvertibleToJournalEntryconvertToJournalEntry in interface ConvertibleToJournalEntryjournalId - journal identifierpublic SystemMaintenanceTaskType getTaskType()
getTaskType in interface SystemMaintenanceTaskpublic String getSourceNodeId()
public String getJournalIdentifier()
public Long getJournalEntryId()
Copyright © 2003–2020 Atlassian. All rights reserved.