Package org.elasticsearch.plugins
Interface RepositoryPlugin
-
public interface RepositoryPlugin
An extension point forPlugin
implementations to add custom snapshot repositories.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Map<java.lang.String,Repository.Factory>
getRepositories(Environment env, NamedXContentRegistry namedXContentRegistry)
Returns repository types added by this plugin.
-
-
-
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 returnedMap
is the type name of the repository and the value is a factory to construct theRepository
interface.
-
-