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() {
|
@Override protected void configure() {
|
||||||
bind(MergePolicyProvider.class)
|
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();
|
.asEagerSingleton();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class MergeSchedulerModule extends AbstractModule {
|
||||||
|
|
||||||
@Override protected void configure() {
|
@Override protected void configure() {
|
||||||
bind(MergeSchedulerProvider.class)
|
bind(MergeSchedulerProvider.class)
|
||||||
.to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class))
|
.to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class, "org.elasticsearch.index.scheduler", "MergeSchedulerProvider"))
|
||||||
.asEagerSingleton();
|
.asEagerSingleton();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue