Module org.elasticsearch.server
Package org.elasticsearch.health.node
Record Class DataStreamLifecycleHealthInfo
java.lang.Object
java.lang.Record
org.elasticsearch.health.node.DataStreamLifecycleHealthInfo
- All Implemented Interfaces:
Writeable
public record DataStreamLifecycleHealthInfo(List<DslErrorInfo> dslErrorsInfo, int totalErrorEntriesCount)
extends Record
implements Writeable
Represents the data stream lifecycle information that would help shape the functionality's health.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataStreamLifecycleHealthInfo
(List<DslErrorInfo> dslErrorsInfo, int totalErrorEntriesCount) Creates an instance of aDataStreamLifecycleHealthInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedslErrorsInfo
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.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalErrorEntriesCount
record component.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
NO_DSL_ERRORS
-
-
Constructor Details
-
DataStreamLifecycleHealthInfo
- Throws:
IOException
-
DataStreamLifecycleHealthInfo
Creates an instance of aDataStreamLifecycleHealthInfo
record class.- Parameters:
dslErrorsInfo
- the value for thedslErrorsInfo
record componenttotalErrorEntriesCount
- the value for thetotalErrorEntriesCount
record component
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
dslErrorsInfo
Returns the value of thedslErrorsInfo
record component.- Returns:
- the value of the
dslErrorsInfo
record component
-
totalErrorEntriesCount
public int totalErrorEntriesCount()Returns the value of thetotalErrorEntriesCount
record component.- Returns:
- the value of the
totalErrorEntriesCount
record component
-