Module org.elasticsearch.server
Class ShutdownShardSnapshotsStatus
java.lang.Object
org.elasticsearch.cluster.metadata.ShutdownShardSnapshotsStatus
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Tracks the status of shard snapshots on a node that is shutting down.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShutdownShardSnapshotsStatusstatic final TransportVersionFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanstatic ShutdownShardSnapshotsStatusfromShardCounts(long completedShards, long pausedShards, long runningShards) inthashCode()longstatic ShutdownShardSnapshotsStatusreadFrom(StreamInput in) longstatus()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
SHUTDOWN_SHARD_SNAPSHOTS_STATUS
-
NOT_STARTED
-
-
Method Details
-
fromShardCounts
public static ShutdownShardSnapshotsStatus fromShardCounts(long completedShards, long pausedShards, long runningShards) -
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
status
-
completedShards
public long completedShards() -
pausedShards
public long pausedShards() -
runningShards
public long runningShards() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-