NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
public class MaxSizeCondition extends Condition<ByteSizeValue>
true
if the index size is at least Condition.value
.Condition.Result, Condition.Stats
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS
Constructor | Description |
---|---|
MaxSizeCondition(StreamInput in) |
|
MaxSizeCondition(ByteSizeValue value) |
Modifier and Type | Method | Description |
---|---|---|
Condition.Result |
evaluate(Condition.Stats stats) |
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final java.lang.String NAME
public MaxSizeCondition(ByteSizeValue value)
public MaxSizeCondition(StreamInput in) throws java.io.IOException
java.io.IOException
public Condition.Result evaluate(Condition.Stats stats)
evaluate
in class Condition<ByteSizeValue>
public java.lang.String getWriteableName()
NamedWriteable
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException