Module org.elasticsearch.server
Package org.elasticsearch.health.node
Record Class RepositoriesHealthInfo
java.lang.Object
java.lang.Record
org.elasticsearch.health.node.RepositoriesHealthInfo
- All Implemented Interfaces:
Writeable
public record RepositoriesHealthInfo(List<String> unknownRepositories, List<String> invalidRepositories)
extends Record
implements Writeable
Health info regarding repository health for a node. It refers to issues that are local to a node such as the unknown and
invalid repositories.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionRepositoriesHealthInfo(List<String> unknownRepositories, List<String> invalidRepositories) Creates an instance of aRepositoriesHealthInforecord 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.Returns the value of theinvalidRepositoriesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunknownRepositoriesrecord component.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
RepositoriesHealthInfo
- Throws:
IOException
-
RepositoriesHealthInfo
Creates an instance of aRepositoriesHealthInforecord class.- Parameters:
unknownRepositories- the value for theunknownRepositoriesrecord componentinvalidRepositories- the value for theinvalidRepositoriesrecord component
-
-
Method Details
-
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). -
unknownRepositories
Returns the value of theunknownRepositoriesrecord component.- Returns:
- the value of the
unknownRepositoriesrecord component
-
invalidRepositories
Returns the value of theinvalidRepositoriesrecord component.- Returns:
- the value of the
invalidRepositoriesrecord component
-