Enum Class DatafeedState

java.lang.Object
java.lang.Enum<DatafeedState>
org.elasticsearch.xpack.core.ml.datafeed.DatafeedState
All Implemented Interfaces:
Serializable, Comparable<DatafeedState>, Constable, NamedWriteable, Writeable, PersistentTaskState, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public enum DatafeedState extends Enum<DatafeedState> implements PersistentTaskState
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static DatafeedState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DatafeedState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static DatafeedState fromString(String name)
    • fromStream

      public static DatafeedState fromStream(StreamInput in) throws IOException
      Throws:
      IOException
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface NamedWriteable
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • 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
    • fromXContent

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

      public String toString()
      Overrides:
      toString in class Enum<DatafeedState>