Record Class ResolvedRepositories

java.lang.Object
java.lang.Record
org.elasticsearch.repositories.ResolvedRepositories
Record Components:
repositoryMetadata - The RepositoryMetadata for 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 Details

  • Constructor Details

    • ResolvedRepositories

      public ResolvedRepositories(List<RepositoryMetadata> repositoryMetadata, List<String> missing)
      Creates an instance of a ResolvedRepositories record class.
      Parameters:
      repositoryMetadata - the value for the repositoryMetadata record component
      missing - the value for the missing record component
  • Method Details

    • isMatchAll

      public static boolean isMatchAll(String[] patterns)
    • resolve

      public static ResolvedRepositories resolve(ClusterState state, String[] patterns)
    • hasMissingRepositories

      public boolean hasMissingRepositories()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • repositoryMetadata

      public List<RepositoryMetadata> repositoryMetadata()
      Returns the value of the repositoryMetadata record component.
      Returns:
      the value of the repositoryMetadata record component
    • missing

      public List<String> missing()
      Returns the value of the missing record component.
      Returns:
      the value of the missing record component