java.lang.Object
java.lang.Record
org.elasticsearch.monitor.StatusInfo
- All Implemented Interfaces:
Writeable
Class that represents the Health status for a node as determined by
NodeHealthService and provides additional
info explaining the reasons-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionStatusInfo(StatusInfo.Status status, String info) Creates an instance of aStatusInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getInfo()final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.status()Returns the value of thestatusrecord component.toString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
StatusInfo
- Throws:
IOException
-
StatusInfo
Creates an instance of aStatusInforecord class.- Parameters:
status- the value for thestatusrecord componentinfo- the value for theinforecord component
-
-
Method Details
-
getInfo
-
getStatus
-
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 withObjects::equals(Object,Object). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-