Module org.elasticsearch.xcore
Record Class DataStreamFeatureSetUsage.DataStreamStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.datastreams.DataStreamFeatureSetUsage.DataStreamStats
- All Implemented Interfaces:
Writeable
- Enclosing class:
DataStreamFeatureSetUsage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionDataStreamStats(long totalDataStreamCount, long indicesBehindDataStream, long failureStoreExplicitlyEnabledDataStreamCount, long failureStoreEffectivelyEnabledDataStreamCount, long failureStoreIndicesCount) Creates an instance of aDataStreamStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailureStoreEffectivelyEnabledDataStreamCountrecord component.longReturns the value of thefailureStoreExplicitlyEnabledDataStreamCountrecord component.longReturns the value of thefailureStoreIndicesCountrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theindicesBehindDataStreamrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalDataStreamCountrecord component.voidwriteTo(StreamOutput out)
-
Constructor Details
-
DataStreamStats
- Throws:
IOException
-
DataStreamStats
public DataStreamStats(long totalDataStreamCount, long indicesBehindDataStream, long failureStoreExplicitlyEnabledDataStreamCount, long failureStoreEffectivelyEnabledDataStreamCount, long failureStoreIndicesCount) Creates an instance of aDataStreamStatsrecord class.- Parameters:
totalDataStreamCount- the value for thetotalDataStreamCountrecord componentindicesBehindDataStream- the value for theindicesBehindDataStreamrecord componentfailureStoreExplicitlyEnabledDataStreamCount- the value for thefailureStoreExplicitlyEnabledDataStreamCountrecord componentfailureStoreEffectivelyEnabledDataStreamCount- the value for thefailureStoreEffectivelyEnabledDataStreamCountrecord componentfailureStoreIndicesCount- the value for thefailureStoreIndicesCountrecord component
-
-
Method Details
-
writeTo
- 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 '=='. -
totalDataStreamCount
public long totalDataStreamCount()Returns the value of thetotalDataStreamCountrecord component.- Returns:
- the value of the
totalDataStreamCountrecord component
-
indicesBehindDataStream
public long indicesBehindDataStream()Returns the value of theindicesBehindDataStreamrecord component.- Returns:
- the value of the
indicesBehindDataStreamrecord component
-
failureStoreExplicitlyEnabledDataStreamCount
public long failureStoreExplicitlyEnabledDataStreamCount()Returns the value of thefailureStoreExplicitlyEnabledDataStreamCountrecord component.- Returns:
- the value of the
failureStoreExplicitlyEnabledDataStreamCountrecord component
-
failureStoreEffectivelyEnabledDataStreamCount
public long failureStoreEffectivelyEnabledDataStreamCount()Returns the value of thefailureStoreEffectivelyEnabledDataStreamCountrecord component.- Returns:
- the value of the
failureStoreEffectivelyEnabledDataStreamCountrecord component
-
failureStoreIndicesCount
public long failureStoreIndicesCount()Returns the value of thefailureStoreIndicesCountrecord component.- Returns:
- the value of the
failureStoreIndicesCountrecord component
-