java.lang.Object
java.lang.Record
org.elasticsearch.health.node.DiskHealthInfo
- All Implemented Interfaces:
Writeable
public record DiskHealthInfo(HealthStatus healthStatus, DiskHealthInfo.Cause cause)
extends Record
implements Writeable
The health status of the disk space of this node along with the cause.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionDiskHealthInfo
(HealthStatus healthStatus, DiskHealthInfo.Cause cause) Creates an instance of aDiskHealthInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncause()
Returns the value of thecause
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.Returns the value of thehealthStatus
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
DiskHealthInfo
- Throws:
IOException
-
DiskHealthInfo
Creates an instance of aDiskHealthInfo
record class.- Parameters:
healthStatus
- the value for thehealthStatus
record componentcause
- the value for thecause
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
healthStatus
Returns the value of thehealthStatus
record component.- Returns:
- the value of the
healthStatus
record component
-
cause
Returns the value of thecause
record component.- Returns:
- the value of the
cause
record component
-