Class Condition<T>
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 resultstatic class
Condition.Stats
Holder for index stats used to evaluate conditionsNested 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 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
-
Field Details
-
value
-
name
protected final java.lang.String name
-
-
Constructor Details
-
Condition
protected Condition(java.lang.String name)
-
-
Method Details
-
evaluate
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
value
-
name
public java.lang.String name()
-