public final class RolloverResponse extends ActionResponse implements ToXContentObject
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic 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
StreamablereadFrom in interface StreamablereadFrom in class ActionResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class ActionResponsejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException