类 ExecuteWatchRequest
java.lang.Object
org.easysearch.client.watcher.ExecuteWatchRequest
- 所有已实现的接口:
Validatable,org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public class ExecuteWatchRequest extends java.lang.Object implements Validatable, org.easysearch.common.xcontent.ToXContentObject
An execute watch request to execute a watch by id or inline
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classExecuteWatchRequest.ActionExecutionMode从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
方法概要
修饰符和类型 方法 说明 static ExecuteWatchRequestbyId(java.lang.String id)Execute an existing watch on the clusterjava.util.Map<java.lang.String,ExecuteWatchRequest.ActionExecutionMode>getActionModes()java.lang.StringgetId()booleanignoreCondition()static ExecuteWatchRequestinline(java.lang.String watchContent)Execute an inline watchbooleanisDebug()booleanrecordExecution()voidsetActionMode(java.lang.String actionId, ExecuteWatchRequest.ActionExecutionMode actionMode)Sets the action execution mode for the give action (identified by its id).voidsetAlternativeInput(java.lang.String alternativeInput)voidsetDebug(boolean debug)voidsetIgnoreCondition(boolean ignoreCondition)voidsetRecordExecution(boolean recordExecution)voidsetTriggerData(java.lang.String data)java.lang.StringtoString()org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject
isFragment从接口继承的方法 org.easysearch.client.Validatable
validate
-
方法详细资料
-
byId
Execute an existing watch on the cluster- 参数:
id- the id of the watch to execute
-
inline
Execute an inline watch- 参数:
watchContent- the JSON definition of the watch
-
getId
public java.lang.String getId() -
setIgnoreCondition
public void setIgnoreCondition(boolean ignoreCondition)- 参数:
ignoreCondition- set if the condition for this execution be ignored
-
ignoreCondition
public boolean ignoreCondition() -
setRecordExecution
public void setRecordExecution(boolean recordExecution)- 参数:
recordExecution- Sets if this execution be recorded in the history index
-
recordExecution
public boolean recordExecution() -
setAlternativeInput
public void setAlternativeInput(java.lang.String alternativeInput)- 参数:
alternativeInput- Sets the alternative input
-
setTriggerData
public void setTriggerData(java.lang.String data)- 参数:
data- A JSON string representing the data that should be associated with the trigger event.
-
setActionMode
public void setActionMode(java.lang.String actionId, ExecuteWatchRequest.ActionExecutionMode actionMode)Sets the action execution mode for the give action (identified by its id).- 参数:
actionId- the action id.actionMode- the execution mode of the action.
-
getActionModes
-
setDebug
public void setDebug(boolean debug)- 参数:
debug- indicates whether the watch should execute in debug mode. In debug mode the returned watch record will hold the executionvars
-
isDebug
public boolean isDebug() -
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-