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 SummaryNested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponseTransportResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic SnapshotIndexShardStatusfromXContent(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 statsinthashCode()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastShardResponsegetIndex, getShardIdMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
SnapshotIndexShardStatus- Throws:
- IOException
 
 
- 
- 
Method Details- 
getStageReturns snapshot stage
- 
getStatsReturns snapshot stats
- 
getNodeIdReturns node id of the node where snapshot is currently running
- 
getFailureReturns reason for snapshot failure
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- BroadcastShardResponse
- Throws:
- IOException
 
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
- 
fromXContentpublic static SnapshotIndexShardStatus fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String indexId) throws IOException- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
 
-