Class WatchElement
- java.lang.Object
-
- com.floragunn.signals.watch.common.WatchElement
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Direct Known Subclasses:
ActionHandler,Check,HttpClientConfig,HttpRequestConfig,Watch
public abstract class WatchElement extends Object implements org.elasticsearch.xcontent.ToXContentObject
-
-
Constructor Summary
Constructors Constructor Description WatchElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetChildByNameAndType(Class<T> type, com.fasterxml.jackson.databind.JsonNode jsonNode)<T> TgetChildByNameAndType(Class<T> type, String name)Iterable<? extends WatchElement>getChildren()StringgetName()protected List<String>render(WatchExecutionContext ctx, List<org.elasticsearch.script.TemplateScript.Factory> list)protected Stringrender(WatchExecutionContext ctx, org.elasticsearch.script.TemplateScript.Factory script)
-
-
-
Method Detail
-
getChildren
public Iterable<? extends WatchElement> getChildren()
-
getChildByNameAndType
public <T> T getChildByNameAndType(Class<T> type, com.fasterxml.jackson.databind.JsonNode jsonNode)
-
getName
public String getName()
-
render
protected String render(WatchExecutionContext ctx, org.elasticsearch.script.TemplateScript.Factory script)
-
render
protected List<String> render(WatchExecutionContext ctx, List<org.elasticsearch.script.TemplateScript.Factory> list)
-
-