Module org.elasticsearch.server
Class SnapshotStatus
java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotStatus
- All Implemented Interfaces:
Writeable
,ChunkedToXContent
,ChunkedToXContentObject
Status of a snapshot
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static SnapshotStatus
fromXContent
(XContentParser parser) Returns list of snapshot indicesReturns list of snapshot shardsReturns snapshotgetState()
Returns snapshot stategetStats()
Returns number of files in the snapshotint
hashCode()
Returns true if global state is included in the snapshot, false otherwise.toString()
Iterator<? extends ToXContent>
toXContentChunked
(ToXContent.Params params) Create an iterator ofToXContent
chunks for a REST response.void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunkedV7
Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContentObject
isFragment
-
Method Details
-
getSnapshot
Returns snapshot -
getState
Returns snapshot state -
includeGlobalState
Returns true if global state is included in the snapshot, false otherwise. Can be null if this information is unknown. -
getShards
Returns list of snapshot shards -
getShardsStats
-
getIndices
Returns list of snapshot indices -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
-
getStats
Returns number of files in the snapshot -
toXContentChunked
Description copied from interface:ChunkedToXContent
Create an iterator ofToXContent
chunks for a REST response. Each chunk is serialized with the sameXContentBuilder
andToXContent.Params
, which is also the same as theToXContent.Params
passed as theparams
argument. For best results, all chunks should beO(1)
size. The last chunk in the iterator must always yield at least one byte of output. See alsoChunkedToXContentHelper
for some handy utilities.Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.
- Specified by:
toXContentChunked
in interfaceChunkedToXContent
- Returns:
- iterator over chunks of
ToXContent
-
fromXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-