java.lang.Object
java.lang.Record
org.elasticsearch.cluster.ClusterSnapshotStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public record ClusterSnapshotStats(int snapshotsInProgressCount, int incompleteShardSnapshotCount, int deletionsInProgressCount, int cleanupsInProgressCount, List<org.elasticsearch.cluster.ClusterSnapshotStats.PerRepositoryStats> statsByRepository)
extends Record
implements ToXContentObject, Writeable
-
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
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionClusterSnapshotStats(int snapshotsInProgressCount, int incompleteShardSnapshotCount, int deletionsInProgressCount, int cleanupsInProgressCount, List<org.elasticsearch.cluster.ClusterSnapshotStats.PerRepositoryStats> statsByRepository) Creates an instance of aClusterSnapshotStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecleanupsInProgressCountrecord component.intReturns the value of thedeletionsInProgressCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theincompleteShardSnapshotCountrecord component.static ClusterSnapshotStatsof(ClusterState clusterState, long currentTimeMillis) static ClusterSnapshotStatsreadFrom(StreamInput in) intReturns the value of thesnapshotsInProgressCountrecord component.List<org.elasticsearch.cluster.ClusterSnapshotStats.PerRepositoryStats> Returns the value of thestatsByRepositoryrecord component.final StringtoString()Returns a string representation of this record class.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
-
EMPTY
-
-
Constructor Details
-
ClusterSnapshotStats
public ClusterSnapshotStats(int snapshotsInProgressCount, int incompleteShardSnapshotCount, int deletionsInProgressCount, int cleanupsInProgressCount, List<org.elasticsearch.cluster.ClusterSnapshotStats.PerRepositoryStats> statsByRepository) Creates an instance of aClusterSnapshotStatsrecord class.- Parameters:
snapshotsInProgressCount- the value for thesnapshotsInProgressCountrecord componentincompleteShardSnapshotCount- the value for theincompleteShardSnapshotCountrecord componentdeletionsInProgressCount- the value for thedeletionsInProgressCountrecord componentcleanupsInProgressCount- the value for thecleanupsInProgressCountrecord componentstatsByRepository- the value for thestatsByRepositoryrecord component
-
-
Method Details
-
of
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
readFrom
- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
snapshotsInProgressCount
public int snapshotsInProgressCount()Returns the value of thesnapshotsInProgressCountrecord component.- Returns:
- the value of the
snapshotsInProgressCountrecord component
-
incompleteShardSnapshotCount
public int incompleteShardSnapshotCount()Returns the value of theincompleteShardSnapshotCountrecord component.- Returns:
- the value of the
incompleteShardSnapshotCountrecord component
-
deletionsInProgressCount
public int deletionsInProgressCount()Returns the value of thedeletionsInProgressCountrecord component.- Returns:
- the value of the
deletionsInProgressCountrecord component
-
cleanupsInProgressCount
public int cleanupsInProgressCount()Returns the value of thecleanupsInProgressCountrecord component.- Returns:
- the value of the
cleanupsInProgressCountrecord component
-
statsByRepository
Returns the value of thestatsByRepositoryrecord component.- Returns:
- the value of the
statsByRepositoryrecord component
-