Class ExecuteWatchResponse

java.lang.Object
org.elasticsearch.client.watcher.ExecuteWatchResponse

public class ExecuteWatchResponse
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static org.elasticsearch.common.ParseField ID_FIELD  
    static org.elasticsearch.common.ParseField WATCH_FIELD  
  • Constructor Summary

    Constructors
    Constructor Description
    ExecuteWatchResponse()  
    ExecuteWatchResponse​(java.lang.String recordId, org.elasticsearch.common.bytes.BytesReference contentSource)  
  • Method Summary

    Modifier and Type Method Description
    static ExecuteWatchResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    org.elasticsearch.common.bytes.BytesReference getRecord()  
    java.util.Map<java.lang.String,​java.lang.Object> getRecordAsMap()
    Returns the watch record as a map Use ObjectPath to navigate through the data
    java.lang.String getRecordId()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID_FIELD

      public static final org.elasticsearch.common.ParseField ID_FIELD
    • WATCH_FIELD

      public static final org.elasticsearch.common.ParseField WATCH_FIELD
  • Constructor Details

    • ExecuteWatchResponse

      public ExecuteWatchResponse()
    • ExecuteWatchResponse

      public ExecuteWatchResponse​(java.lang.String recordId, org.elasticsearch.common.bytes.BytesReference contentSource)
  • Method Details

    • getRecordId

      public java.lang.String getRecordId()
      Returns:
      The id of the watch record holding the watch execution result.
    • getRecord

      public org.elasticsearch.common.bytes.BytesReference getRecord()
      Returns:
      The watch record source
    • getRecordAsMap

      public java.util.Map<java.lang.String,​java.lang.Object> getRecordAsMap()
      Returns the watch record as a map Use ObjectPath to navigate through the data
    • fromXContent

      public static ExecuteWatchResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException