Package org.nuxeo.elasticsearch.commands
Class IndexingCommandsStacker
- java.lang.Object
-
- org.nuxeo.elasticsearch.commands.IndexingCommandsStacker
-
- Direct Known Subclasses:
ElasticSearchInlineListener
public abstract class IndexingCommandsStacker extends Object
Contains logic to stack ElasticSearch commands depending on Document events This class is mainly here to make testing easier
-
-
Constructor Summary
Constructors Constructor Description IndexingCommandsStacker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Map<String,IndexingCommands>
getAllCommands()
protected IndexingCommands
getCommands(DocumentModel doc)
protected String
getDocKey(DocumentModel doc)
protected IndexingCommands
getOrCreateCommands(DocumentModel doc)
protected boolean
isSynchronous(DocumentEventContext docCtx, DocumentModel doc)
protected abstract boolean
isSyncIndexingByDefault()
protected void
stackCommand(DocumentModel doc, String eventId, boolean sync)
protected void
stackCommand(DocumentModel doc, DocumentEventContext docCtx, String eventId)
void
stackCommand(DocumentEventContext docCtx, String eventId)
-
-
-
Field Detail
-
log
protected static final Log log
-
-
Method Detail
-
getAllCommands
protected abstract Map<String,IndexingCommands> getAllCommands()
-
isSyncIndexingByDefault
protected abstract boolean isSyncIndexingByDefault()
-
getCommands
protected IndexingCommands getCommands(DocumentModel doc)
-
stackCommand
public void stackCommand(DocumentEventContext docCtx, String eventId)
-
stackCommand
protected void stackCommand(DocumentModel doc, DocumentEventContext docCtx, String eventId)
-
isSynchronous
protected boolean isSynchronous(DocumentEventContext docCtx, DocumentModel doc)
-
stackCommand
protected void stackCommand(DocumentModel doc, String eventId, boolean sync)
-
getOrCreateCommands
protected IndexingCommands getOrCreateCommands(DocumentModel doc)
-
getDocKey
protected String getDocKey(DocumentModel doc)
-
-