Module org.elasticsearch.server
Package org.elasticsearch.repositories
Record Class RepositoriesStats.SnapshotStats
java.lang.Object
java.lang.Record
org.elasticsearch.repositories.RepositoriesStats.SnapshotStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
RepositoriesStats
public static record RepositoriesStats.SnapshotStats(long shardSnapshotsStarted, long shardSnapshotsCompleted, long shardSnapshotsInProgress, long totalReadThrottledNanos, long totalWriteThrottledNanos, long numberOfBlobsUploaded, long numberOfBytesUploaded, long totalUploadTimeInMillis, long totalUploadReadTimeInMillis)
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, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotStats(long totalReadThrottledNanos, long totalWriteThrottledNanos) SnapshotStats(long shardSnapshotsStarted, long shardSnapshotsCompleted, long shardSnapshotsInProgress, long totalReadThrottledNanos, long totalWriteThrottledNanos, long numberOfBlobsUploaded, long numberOfBytesUploaded, long totalUploadTimeInMillis, long totalUploadReadTimeInMillis) Creates an instance of aSnapshotStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thenumberOfBlobsUploadedrecord component.longReturns the value of thenumberOfBytesUploadedrecord component.readFrom(StreamInput in) longReturns the value of theshardSnapshotsCompletedrecord component.longReturns the value of theshardSnapshotsInProgressrecord component.longReturns the value of theshardSnapshotsStartedrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalReadThrottledNanosrecord component.longReturns the value of thetotalUploadReadTimeInMillisrecord component.longReturns the value of thetotalUploadTimeInMillisrecord component.longReturns the value of thetotalWriteThrottledNanosrecord component.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
-
ZERO
-
-
Constructor Details
-
SnapshotStats
public SnapshotStats(long totalReadThrottledNanos, long totalWriteThrottledNanos) -
SnapshotStats
public SnapshotStats(long shardSnapshotsStarted, long shardSnapshotsCompleted, long shardSnapshotsInProgress, long totalReadThrottledNanos, long totalWriteThrottledNanos, long numberOfBlobsUploaded, long numberOfBytesUploaded, long totalUploadTimeInMillis, long totalUploadReadTimeInMillis) Creates an instance of aSnapshotStatsrecord class.- Parameters:
shardSnapshotsStarted- the value for theshardSnapshotsStartedrecord componentshardSnapshotsCompleted- the value for theshardSnapshotsCompletedrecord componentshardSnapshotsInProgress- the value for theshardSnapshotsInProgressrecord componenttotalReadThrottledNanos- the value for thetotalReadThrottledNanosrecord componenttotalWriteThrottledNanos- the value for thetotalWriteThrottledNanosrecord componentnumberOfBlobsUploaded- the value for thenumberOfBlobsUploadedrecord componentnumberOfBytesUploaded- the value for thenumberOfBytesUploadedrecord componenttotalUploadTimeInMillis- the value for thetotalUploadTimeInMillisrecord componenttotalUploadReadTimeInMillis- the value for thetotalUploadReadTimeInMillisrecord component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
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
-
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. All components in this record class are compared with '=='. -
shardSnapshotsStarted
public long shardSnapshotsStarted()Returns the value of theshardSnapshotsStartedrecord component.- Returns:
- the value of the
shardSnapshotsStartedrecord component
-
shardSnapshotsCompleted
public long shardSnapshotsCompleted()Returns the value of theshardSnapshotsCompletedrecord component.- Returns:
- the value of the
shardSnapshotsCompletedrecord component
-
shardSnapshotsInProgress
public long shardSnapshotsInProgress()Returns the value of theshardSnapshotsInProgressrecord component.- Returns:
- the value of the
shardSnapshotsInProgressrecord component
-
totalReadThrottledNanos
public long totalReadThrottledNanos()Returns the value of thetotalReadThrottledNanosrecord component.- Returns:
- the value of the
totalReadThrottledNanosrecord component
-
totalWriteThrottledNanos
public long totalWriteThrottledNanos()Returns the value of thetotalWriteThrottledNanosrecord component.- Returns:
- the value of the
totalWriteThrottledNanosrecord component
-
numberOfBlobsUploaded
public long numberOfBlobsUploaded()Returns the value of thenumberOfBlobsUploadedrecord component.- Returns:
- the value of the
numberOfBlobsUploadedrecord component
-
numberOfBytesUploaded
public long numberOfBytesUploaded()Returns the value of thenumberOfBytesUploadedrecord component.- Returns:
- the value of the
numberOfBytesUploadedrecord component
-
totalUploadTimeInMillis
public long totalUploadTimeInMillis()Returns the value of thetotalUploadTimeInMillisrecord component.- Returns:
- the value of the
totalUploadTimeInMillisrecord component
-
totalUploadReadTimeInMillis
public long totalUploadReadTimeInMillis()Returns the value of thetotalUploadReadTimeInMillisrecord component.- Returns:
- the value of the
totalUploadReadTimeInMillisrecord component
-