Class SnapshotIndexShardStatus
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.support.broadcast.BroadcastShardResponse
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexShardStatus
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
,org.elasticsearch.core.RefCounted
public class SnapshotIndexShardStatus
extends BroadcastShardResponse
implements org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
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.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static SnapshotIndexShardStatus
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String indexId)
Returns reason for snapshot failureReturns node id of the node where snapshot is currently runninggetStage()
Returns snapshot stagegetStats()
Returns snapshot statsint
hashCode()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastShardResponse
getIndex, getShardId
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
SnapshotIndexShardStatus
- Throws:
IOException
-
-
Method Details
-
getStage
Returns snapshot stage -
getStats
Returns snapshot stats -
getNodeId
Returns node id of the node where snapshot is currently running -
getFailure
Returns reason for snapshot failure -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBroadcastShardResponse
- Throws:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
fromXContent
public static SnapshotIndexShardStatus fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String indexId) throws IOException- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-