Interface RepositoryPlugin


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

    • getRepositories

      default Map<String,Repository.Factory> getRepositories(Environment env, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, BigArrays bigArrays, RecoverySettings recoverySettings)
      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.
    • getInternalRepositories

      default Map<String,Repository.Factory> getInternalRepositories(Environment env, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, RecoverySettings recoverySettings)
      Returns internal repository types added by this plugin. Internal repositories cannot be registered through the external API.
      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.