Class IndexAction
- java.lang.Object
-
- com.floragunn.signals.watch.common.WatchElement
-
- com.floragunn.signals.watch.action.handlers.ActionHandler
-
- com.floragunn.signals.watch.action.handlers.IndexAction
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class IndexAction extends ActionHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexAction.Factory-
Nested classes/interfaces inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
ActionHandler.FactoryRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
factoryRegistry
-
-
Constructor Summary
Constructors Constructor Description IndexAction(String index, org.elasticsearch.action.support.WriteRequest.RefreshPolicy refreshPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionExecutionResultexecute(WatchExecutionContext ctx)com.floragunn.searchsupport.config.elements.InlineMustacheTemplate<String>getDocId()StringgetType()voidsetDocId(com.floragunn.searchsupport.config.elements.InlineMustacheTemplate<String> docId)voidsetDocId(String docId)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
create, create, parseJson, toJson
-
Methods inherited from class com.floragunn.signals.watch.common.WatchElement
getChildByNameAndType, getChildByNameAndType, getChildren, getName, render, render
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IndexAction
public IndexAction(String index, org.elasticsearch.action.support.WriteRequest.RefreshPolicy refreshPolicy)
-
-
Method Detail
-
execute
public ActionExecutionResult execute(WatchExecutionContext ctx) throws ActionExecutionException
- Specified by:
executein classActionHandler- Throws:
ActionExecutionException
-
getType
public String getType()
- Specified by:
getTypein classActionHandler
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
getDocId
public com.floragunn.searchsupport.config.elements.InlineMustacheTemplate<String> getDocId()
-
setDocId
public void setDocId(com.floragunn.searchsupport.config.elements.InlineMustacheTemplate<String> docId)
-
setDocId
public void setDocId(String docId)
-
-