Class Calc
- java.lang.Object
-
- com.floragunn.signals.watch.common.WatchElement
-
- com.floragunn.signals.watch.checks.Check
-
- com.floragunn.signals.watch.checks.Calc
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class Calc extends Check
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCalc.CalcScript
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompileScripts(WatchInitializationService watchInitService)booleanexecute(WatchExecutionContext ctx)StringgetLang()Map<String,Object>getParams()StringgetSource()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.checks.Check
create, getIndexMapping, getName, getTemplateScriptParamsAsMap, toString
-
Methods inherited from class com.floragunn.signals.watch.common.WatchElement
getChildByNameAndType, getChildByNameAndType, getChildren, render, render
-
-
-
-
Method Detail
-
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
-
getSource
public String getSource()
-
getLang
public String getLang()
-
execute
public boolean execute(WatchExecutionContext ctx) throws CheckExecutionException
- Specified by:
executein classCheck- Throws:
CheckExecutionException
-
compileScripts
public void compileScripts(WatchInitializationService watchInitService) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
-