public interface RepositoryPlugin
Plugin
implementations to add custom snapshot repositories.Modifier and Type | Method and Description |
---|---|
default java.util.Map<java.lang.String,Repository.Factory> |
getRepositories(Environment env,
NamedXContentRegistry namedXContentRegistry)
Returns repository types added by this plugin.
|
default java.util.Map<java.lang.String,Repository.Factory> getRepositories(Environment env, NamedXContentRegistry namedXContentRegistry)
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.