simplify policy and scheduler settings

This commit is contained in:
kimchy 2011-07-18 23:43:10 +03:00
parent a3c05a35bb
commit 8b7620f9de
2 changed files with 2 additions and 2 deletions

View File

@ -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();
} }
} }

View File

@ -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();
} }
} }