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
ConstructorDescriptionRepositoriesHealthInfo
(List<String> unknownRepositories, List<String> invalidRepositories) Creates an instance of aRepositoriesHealthInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 theinvalidRepositories
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theunknownRepositories
record component.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
RepositoriesHealthInfo
- Throws:
IOException
-
RepositoriesHealthInfo
Creates an instance of aRepositoriesHealthInfo
record class.- Parameters:
unknownRepositories
- the value for theunknownRepositories
record componentinvalidRepositories
- the value for theinvalidRepositories
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)
. -
unknownRepositories
Returns the value of theunknownRepositories
record component.- Returns:
- the value of the
unknownRepositories
record component
-
invalidRepositories
Returns the value of theinvalidRepositories
record component.- Returns:
- the value of the
invalidRepositories
record component
-