Class FlushJobResponse

java.lang.Object
org.elasticsearch.client.ml.FlushJobResponse
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class FlushJobResponse extends Object implements org.elasticsearch.xcontent.ToXContentObject
Response object containing flush acknowledgement and additional data
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ConstructingObjectParser<FlushJobResponse,Void>
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlushJobResponse(boolean flushed, Date lastFinalizedBucketEnd)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser)
     
    Provides the timestamp (in milliseconds-since-the-epoch) of the end of the last bucket that was processed.
    int
     
    boolean
    Was the job successfully flushed or not
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Field Details

    • FLUSHED

      public static final org.elasticsearch.xcontent.ParseField FLUSHED
    • LAST_FINALIZED_BUCKET_END

      public static final org.elasticsearch.xcontent.ParseField LAST_FINALIZED_BUCKET_END
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<FlushJobResponse,Void> PARSER
  • Constructor Details

    • FlushJobResponse

      public FlushJobResponse(boolean flushed, @Nullable Date lastFinalizedBucketEnd)
  • Method Details

    • fromXContent

      public static FlushJobResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • isFlushed

      public boolean isFlushed()
      Was the job successfully flushed or not
    • getLastFinalizedBucketEnd

      @Nullable public Date getLastFinalizedBucketEnd()
      Provides the timestamp (in milliseconds-since-the-epoch) of the end of the last bucket that was processed.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException