Interface RepositoryPlugin


  • public interface RepositoryPlugin
    An extension point for Plugin implementations to add custom snapshot repositories.
    • Method Detail

      • getRepositories

        default java.util.Map<java.lang.String,​Repository.Factory> getRepositories​(Environment env,
                                                                                         NamedXContentRegistry namedXContentRegistry)
        Returns repository types added by this plugin.
        Parameters:
        env - The environment for the local node, which may be used for the local settings and path.repo The key of the returned Map is the type name of the repository and the value is a factory to construct the Repository interface.