Streamable
, Writeable
, ToXContent
, ToXContentObject
public final class RolloverResponse extends ShardsAcknowledgedResponse implements ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
protected void |
addCustomFields(XContentBuilder builder,
ToXContent.Params params) |
|
boolean |
equals(java.lang.Object o) |
|
static RolloverResponse |
fromXContent(XContentParser parser) |
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getConditionStatus() |
Returns the statuses of all the request conditions
|
java.lang.String |
getNewIndex() |
Returns the name of the index that the request alias currently points to
|
java.lang.String |
getOldIndex() |
Returns the name of the index that the request alias was pointing to
|
int |
hashCode() |
|
boolean |
isDryRun() |
Returns if the rollover execution was skipped even when conditions were met
|
boolean |
isRolledOver() |
Returns true if the rollover was not simulated and the conditions were met
|
boolean |
isShardsAcked() |
Deprecated.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
declareAcknowledgedField, isAcknowledged, readAcknowledged, toXContent, writeAcknowledged
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
declareAcknowledgedAndShardsAcknowledgedFields, isShardsAcknowledged, readShardsAcknowledged, writeShardsAcknowledged
toXContent
isFragment
remoteAddress, remoteAddress
public java.lang.String getOldIndex()
public java.lang.String getNewIndex()
public java.util.Map<java.lang.String,java.lang.Boolean> getConditionStatus()
public boolean isDryRun()
public boolean isRolledOver()
@Deprecated public boolean isShardsAcked()
AcknowledgedResponse.isAcknowledged()
is
false, then this will also return false.public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class ActionResponse
java.io.IOException
protected void addCustomFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
addCustomFields
in class ShardsAcknowledgedResponse
java.io.IOException
public static RolloverResponse fromXContent(XContentParser parser)
public boolean equals(java.lang.Object o)
equals
in class ShardsAcknowledgedResponse
public int hashCode()
hashCode
in class ShardsAcknowledgedResponse