Package org.elasticsearch.plugins
Interface RepositoryPlugin
public interface RepositoryPlugin
An extension point for
Plugin
implementations to add custom snapshot repositories.-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String,Repository.Factory>
getInternalRepositories(Environment env, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, RecoverySettings recoverySettings)
Returns internal repository types added by this plugin.default Map<String,Repository.Factory>
getRepositories(Environment env, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, BigArrays bigArrays, RecoverySettings recoverySettings)
Returns repository types added by this plugin.
-
Method Details
-
getRepositories
default Map<String,Repository.Factory> getRepositories(Environment env, org.elasticsearch.common.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 returnedMap
is the type name of the repository and the value is a factory to construct theRepository
interface.
-
getInternalRepositories
default Map<String,Repository.Factory> getInternalRepositories(Environment env, org.elasticsearch.common.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 returnedMap
is the type name of the repository and the value is a factory to construct theRepository
interface.
-