Class NoOpIndexTask
- java.lang.Object
-
- com.atlassian.confluence.internal.search.tasks.NoOpIndexTask
-
- All Implemented Interfaces:
ConfluenceIndexTask
,ConvertibleToJournalEntry
,IndexTask
@LuceneIndependent @Internal public class NoOpIndexTask extends Object implements ConfluenceIndexTask
Represents a no operation index task.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Optional<JournalEntry>
convertToJournalEntry(JournalIdentifier journalId)
Convert to journal entry.static NoOpIndexTask
getChangeInstance()
static NoOpIndexTask
getContentInstance()
String
getDescription()
A description of the task that can be presented to the user via the UI.static NoOpIndexTask
getInstance()
Deprecated.since 7.9.SearchIndex
getSearchIndex()
void
perform(SearchIndexWriter writer)
Executes this task against a document writer.
-
-
-
Method Detail
-
getContentInstance
public static NoOpIndexTask getContentInstance()
-
getChangeInstance
public static NoOpIndexTask getChangeInstance()
-
getInstance
@Deprecated public static NoOpIndexTask getInstance()
Deprecated.since 7.9. usegetChangeInstance()
orgetContentInstance()
-
perform
public void perform(SearchIndexWriter writer) throws IOException
Description copied from interface:ConfluenceIndexTask
Executes this task against a document writer.- Specified by:
perform
in interfaceConfluenceIndexTask
- Throws:
IOException
-
convertToJournalEntry
public Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
Description copied from interface:ConvertibleToJournalEntry
Convert to journal entry.- Specified by:
convertToJournalEntry
in interfaceConvertibleToJournalEntry
- Parameters:
journalId
- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
getDescription
public String getDescription()
Description copied from interface:IndexTask
A description of the task that can be presented to the user via the UI.- Specified by:
getDescription
in interfaceIndexTask
- Returns:
- an readable message.
-
getSearchIndex
public SearchIndex getSearchIndex()
- Specified by:
getSearchIndex
in interfaceConfluenceIndexTask
- Returns:
- the
SearchIndex
that the task should write to
-
-