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.Params
Nested 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 aClusterSnapshotStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecleanupsInProgressCount
record component.int
Returns the value of thedeletionsInProgressCount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theincompleteShardSnapshotCount
record component.static ClusterSnapshotStats
of
(ClusterState clusterState, long currentTimeMillis) static ClusterSnapshotStats
readFrom
(StreamInput in) int
Returns the value of thesnapshotsInProgressCount
record component.List
<org.elasticsearch.cluster.ClusterSnapshotStats.PerRepositoryStats> Returns the value of thestatsByRepository
record component.final String
toString()
Returns a string representation of this record class.toXContent
(XContentBuilder builder, ToXContent.Params params) 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.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 aClusterSnapshotStats
record class.- Parameters:
snapshotsInProgressCount
- the value for thesnapshotsInProgressCount
record componentincompleteShardSnapshotCount
- the value for theincompleteShardSnapshotCount
record componentdeletionsInProgressCount
- the value for thedeletionsInProgressCount
record componentcleanupsInProgressCount
- the value for thecleanupsInProgressCount
record componentstatsByRepository
- the value for thestatsByRepository
record component
-
-
Method Details
-
of
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 thesnapshotsInProgressCount
record component.- Returns:
- the value of the
snapshotsInProgressCount
record component
-
incompleteShardSnapshotCount
public int incompleteShardSnapshotCount()Returns the value of theincompleteShardSnapshotCount
record component.- Returns:
- the value of the
incompleteShardSnapshotCount
record component
-
deletionsInProgressCount
public int deletionsInProgressCount()Returns the value of thedeletionsInProgressCount
record component.- Returns:
- the value of the
deletionsInProgressCount
record component
-
cleanupsInProgressCount
public int cleanupsInProgressCount()Returns the value of thecleanupsInProgressCount
record component.- Returns:
- the value of the
cleanupsInProgressCount
record component
-
statsByRepository
Returns the value of thestatsByRepository
record component.- Returns:
- the value of the
statsByRepository
record component
-