public class CreateSnapshotResponse extends ActionResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_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) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic SnapshotInfo getSnapshotInfo()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionpublic RestStatus status()
RestStatus.ACCEPTED if snapshot is still in progressRestStatus.OK if snapshot was successful or partially successfulRestStatus.INTERNAL_SERVER_ERROR if snapshot failed completelypublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.