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 IndexingCommandsgetCommands(DocumentModel doc)protected StringgetDocKey(DocumentModel doc)protected IndexingCommandsgetOrCreateCommands(DocumentModel doc)protected booleanisSynchronous(DocumentEventContext docCtx, DocumentModel doc)protected abstract booleanisSyncIndexingByDefault()protected voidstackCommand(DocumentModel doc, String eventId, boolean sync)protected voidstackCommand(DocumentModel doc, DocumentEventContext docCtx, String eventId)voidstackCommand(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)
 
 - 
 
 -