Module org.elasticsearch.server
Package org.elasticsearch.repositories
Record Class ResolvedRepositories
java.lang.Object
java.lang.Record
org.elasticsearch.repositories.ResolvedRepositories
- Record Components:
repositoryMetadata- TheRepositoryMetadatafor the repositories that matched the description.missing- The parts of the description which matched no repositories.
public record ResolvedRepositories(List<RepositoryMetadata> repositoryMetadata, List<String> missing)
extends Record
The result of calling
resolve(ClusterState, String[]) to resolve a description of some snapshot repositories (from a path
component of a request to the get-repositories or get-snapshots APIs) against the known repositories in the cluster state: the
RepositoryMetadata for the extant repositories that match the description, together with a list of the parts of the description
that failed to match any known repository.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolvedRepositories(List<RepositoryMetadata> repositoryMetadata, List<String> missing) Creates an instance of aResolvedRepositoriesrecord 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.booleanstatic booleanisMatchAll(String[] patterns) missing()Returns the value of themissingrecord component.Returns the value of therepositoryMetadatarecord component.static ResolvedRepositoriesresolve(ClusterState state, String[] patterns) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ALL_PATTERN
- See Also:
-
-
Constructor Details
-
ResolvedRepositories
Creates an instance of aResolvedRepositoriesrecord class.- Parameters:
repositoryMetadata- the value for therepositoryMetadatarecord componentmissing- the value for themissingrecord component
-
-
Method Details
-
isMatchAll
-
resolve
-
hasMissingRepositories
public boolean hasMissingRepositories() -
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). -
repositoryMetadata
Returns the value of therepositoryMetadatarecord component.- Returns:
- the value of the
repositoryMetadatarecord component
-
missing
Returns the value of themissingrecord component.- Returns:
- the value of the
missingrecord component
-