java.lang.Object
org.elasticsearch.action.admin.indices.rollover.Condition<T>
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
Direct Known Subclasses:
ElasticsearchNodeCommand.UnknownCondition, MaxAgeCondition, MaxDocsCondition, MaxPrimaryShardSizeCondition, MaxSizeCondition

public abstract class Condition<T>
extends java.lang.Object
implements NamedWriteable, org.elasticsearch.common.xcontent.ToXContentFragment
Base class for rollover request conditions
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Condition.Result
    Holder for evaluated condition result
    static class  Condition.Stats
    Holder for index stats used to evaluate conditions

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

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.lang.String name  
    protected T value  

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected Condition​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    abstract Condition.Result evaluate​(Condition.Stats stats)  
    int hashCode()  
    java.lang.String name()  
    java.lang.String toString()  
    T value()  

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable

    getWriteableName

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent

    toXContent

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment

    Methods inherited from interface org.elasticsearch.common.io.stream.Writeable

    writeTo
  • Field Details

    • value

      protected T value
    • name

      protected final java.lang.String name
  • Constructor Details

    • Condition

      protected Condition​(java.lang.String name)
  • Method Details

    • evaluate

      public abstract Condition.Result evaluate​(Condition.Stats stats)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public final java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • value

      public T value()
    • name

      public java.lang.String name()