类 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 class  ExecuteWatchRequest.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 ExecuteWatchRequest byId​(java.lang.String id)
    Execute an existing watch on the cluster
    java.util.Map<java.lang.String,​ExecuteWatchRequest.ActionExecutionMode> getActionModes()  
    java.lang.String getId()  
    boolean ignoreCondition()  
    static ExecuteWatchRequest inline​(java.lang.String watchContent)
    Execute an inline watch
    boolean isDebug()  
    boolean recordExecution()  
    void setActionMode​(java.lang.String actionId, ExecuteWatchRequest.ActionExecutionMode actionMode)
    Sets the action execution mode for the give action (identified by its id).
    void setAlternativeInput​(java.lang.String alternativeInput)  
    void setDebug​(boolean debug)  
    void setIgnoreCondition​(boolean ignoreCondition)  
    void setRecordExecution​(boolean recordExecution)  
    void setTriggerData​(java.lang.String data)  
    java.lang.String toString()  
    org.easysearch.common.xcontent.XContentBuilder toXContent​(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

      public static ExecuteWatchRequest byId​(java.lang.String id)
      Execute an existing watch on the cluster
      参数:
      id - the id of the watch to execute
    • inline

      public static ExecuteWatchRequest inline​(java.lang.String watchContent)
      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

      public java.util.Map<java.lang.String,​ExecuteWatchRequest.ActionExecutionMode> 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 execution vars
    • 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