Interface CommandCatalog

All Known Implementing Classes:
CommandCatalogCached, CommandCatalogOverLocator, CommandCatalogUnion, CommandRegistry

public interface CommandCatalog
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.collect.Multimap<ExecSite,String>
    get(String virtualCommandName)
    Return all known locations for a command.
    default Optional<Set<String>>
    get(String virtualCommandName, ExecSite execSite)
    Find the best matching command for the given exec site.
    default Set<ExecSite>
    getExecSites(String virtualCommandName)
    Convenience method to get only a command's set of exec sites.
  • Method Details

    • get

      com.google.common.collect.Multimap<ExecSite,String> get(String virtualCommandName)
      Return all known locations for a command. Candidate locations where the command is unavailable (e.g. on the host) must have been filtered out.
    • get

      default Optional<Set<String>> get(String virtualCommandName, ExecSite execSite)
      Find the best matching command for the given exec site.
    • getExecSites

      default Set<ExecSite> getExecSites(String virtualCommandName)
      Convenience method to get only a command's set of exec sites.