simplify policy and scheduler settings
This commit is contained in:
parent
a3c05a35bb
commit
8b7620f9de
|
@ -35,7 +35,7 @@ public class MergePolicyModule extends AbstractModule {
|
|||
|
||||
@Override protected void configure() {
|
||||
bind(MergePolicyProvider.class)
|
||||
.to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class))
|
||||
.to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class, "org.elasticsearch.index.merge.policy", "MergePolicyProvider"))
|
||||
.asEagerSingleton();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class MergeSchedulerModule extends AbstractModule {
|
|||
|
||||
@Override protected void configure() {
|
||||
bind(MergeSchedulerProvider.class)
|
||||
.to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class))
|
||||
.to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class, "org.elasticsearch.index.scheduler", "MergeSchedulerProvider"))
|
||||
.asEagerSingleton();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue