Package org.elasticsearch.repositories
Interface Repository.Factory
- Enclosing interface:
- Repository
public static interface Repository.Factory
An factory interface for constructing repositories.
See
RepositoryPlugin
.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(RepositoryMetadata metadata) Constructs a repository.default Repository
create
(RepositoryMetadata metadata, Function<String, Repository.Factory> typeLookup)
-
Method Details
-
create
Constructs a repository.- Parameters:
metadata
- metadata for the repository including name and settings- Throws:
Exception
-
create
default Repository create(RepositoryMetadata metadata, Function<String, Repository.Factory> typeLookup) throws Exception- Throws:
Exception
-