public class CreateSnapshotResponse extends ActionResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
SnapshotInfo |
getSnapshotInfo()
Returns snapshot information if snapshot was completed by the time this method returned or null otherwise.
|
void |
readFrom(StreamInput in) |
RestStatus |
status()
Returns HTTP status
RestStatus.ACCEPTED if snapshot is still in progress
RestStatus.OK if snapshot was successful or partially successful
RestStatus.INTERNAL_SERVER_ERROR if snapshot failed completely
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public SnapshotInfo getSnapshotInfo()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
public RestStatus status()
RestStatus.ACCEPTED
RestStatus.OK
RestStatus.INTERNAL_SERVER_ERROR
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.