public final class RolloverResponse extends ActionResponse implements ToXContentObject
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.util.Map.Entry<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
|
boolean |
isAcknowledged()
Returns true if the creation of the new rollover index and switching of the
alias to the newly created index was successful, and returns false otherwise.
|
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()
Returns true if the requisite number of shards were started in the newly
created rollover index before returning.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public java.lang.String getOldIndex()
public java.lang.String getNewIndex()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> getConditionStatus()
public boolean isDryRun()
public boolean isRolledOver()
public boolean isAcknowledged()
isDryRun()
is true, then this will also return false. If this
returns false, then isShardsAcked()
will also return false.public boolean isShardsAcked()
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 class ActionResponse
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException