Fix compile errors
This commit is contained in:
parent
dfdc738a9f
commit
9f6598b18d
|
@ -20,7 +20,6 @@ package org.elasticsearch.common.settings;
|
||||||
|
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.component.AbstractComponent;
|
import org.elasticsearch.common.component.AbstractComponent;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
|
||||||
import org.elasticsearch.common.regex.Regex;
|
import org.elasticsearch.common.regex.Regex;
|
||||||
import org.elasticsearch.common.xcontent.ToXContent.Params;
|
import org.elasticsearch.common.xcontent.ToXContent.Params;
|
||||||
import org.elasticsearch.rest.RestRequest;
|
import org.elasticsearch.rest.RestRequest;
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.monitor;
|
package org.elasticsearch.monitor;
|
||||||
|
|
||||||
import org.elasticsearch.common.component.AbstractLifecycleComponent;
|
import org.elasticsearch.common.component.AbstractLifecycleComponent;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.env.NodeEnvironment;
|
import org.elasticsearch.env.NodeEnvironment;
|
||||||
import org.elasticsearch.monitor.fs.FsService;
|
import org.elasticsearch.monitor.fs.FsService;
|
||||||
|
@ -47,7 +46,6 @@ public class MonitorService extends AbstractLifecycleComponent<MonitorService> {
|
||||||
|
|
||||||
private final FsService fsService;
|
private final FsService fsService;
|
||||||
|
|
||||||
@Inject
|
|
||||||
public MonitorService(Settings settings, NodeEnvironment nodeEnvironment, ThreadPool threadPool) throws IOException {
|
public MonitorService(Settings settings, NodeEnvironment nodeEnvironment, ThreadPool threadPool) throws IOException {
|
||||||
super(settings);
|
super(settings);
|
||||||
this.jvmMonitorService = new JvmMonitorService(settings, threadPool);
|
this.jvmMonitorService = new JvmMonitorService(settings, threadPool);
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
import org.elasticsearch.common.inject.ModulesBuilder;
|
import org.elasticsearch.common.inject.ModulesBuilder;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.settings.SettingsFilter;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.EnvironmentModule;
|
import org.elasticsearch.env.EnvironmentModule;
|
||||||
|
@ -45,7 +46,7 @@ public class AnalysisTestUtils {
|
||||||
.build();
|
.build();
|
||||||
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
||||||
new AnalysisICUPlugin().onModule(analysisModule);
|
new AnalysisICUPlugin().onModule(analysisModule);
|
||||||
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings),
|
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings, new SettingsFilter(settings)),
|
||||||
new EnvironmentModule(new Environment(settings)), analysisModule)
|
new EnvironmentModule(new Environment(settings)), analysisModule)
|
||||||
.createInjector();
|
.createInjector();
|
||||||
final AnalysisService analysisService = parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, indexSettings));
|
final AnalysisService analysisService = parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, indexSettings));
|
||||||
|
|
|
@ -29,6 +29,7 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
import org.elasticsearch.common.inject.ModulesBuilder;
|
import org.elasticsearch.common.inject.ModulesBuilder;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.settings.SettingsFilter;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.EnvironmentModule;
|
import org.elasticsearch.env.EnvironmentModule;
|
||||||
|
@ -203,7 +204,7 @@ public class KuromojiAnalysisTests extends ESTestCase {
|
||||||
|
|
||||||
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
||||||
new AnalysisKuromojiPlugin().onModule(analysisModule);
|
new AnalysisKuromojiPlugin().onModule(analysisModule);
|
||||||
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings),
|
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings, new SettingsFilter(settings)),
|
||||||
new EnvironmentModule(new Environment(settings)), analysisModule)
|
new EnvironmentModule(new Environment(settings)), analysisModule)
|
||||||
.createInjector();
|
.createInjector();
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
import org.elasticsearch.common.inject.ModulesBuilder;
|
import org.elasticsearch.common.inject.ModulesBuilder;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.settings.SettingsFilter;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.EnvironmentModule;
|
import org.elasticsearch.env.EnvironmentModule;
|
||||||
|
@ -57,7 +58,7 @@ public class SimplePhoneticAnalysisTests extends ESTestCase {
|
||||||
Index index = new Index("test");
|
Index index = new Index("test");
|
||||||
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
||||||
new AnalysisPhoneticPlugin().onModule(analysisModule);
|
new AnalysisPhoneticPlugin().onModule(analysisModule);
|
||||||
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings),
|
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings, new SettingsFilter(settings)),
|
||||||
new EnvironmentModule(new Environment(settings)), analysisModule)
|
new EnvironmentModule(new Environment(settings)), analysisModule)
|
||||||
.createInjector();
|
.createInjector();
|
||||||
return parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, settings));
|
return parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, settings));
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
import org.elasticsearch.common.inject.ModulesBuilder;
|
import org.elasticsearch.common.inject.ModulesBuilder;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.settings.SettingsFilter;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.EnvironmentModule;
|
import org.elasticsearch.env.EnvironmentModule;
|
||||||
|
@ -50,7 +51,7 @@ public class SimpleSmartChineseAnalysisTests extends ESTestCase {
|
||||||
.build();
|
.build();
|
||||||
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
||||||
new AnalysisSmartChinesePlugin().onModule(analysisModule);
|
new AnalysisSmartChinesePlugin().onModule(analysisModule);
|
||||||
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings),
|
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings, new SettingsFilter(settings)),
|
||||||
new EnvironmentModule(new Environment(settings)), analysisModule)
|
new EnvironmentModule(new Environment(settings)), analysisModule)
|
||||||
.createInjector();
|
.createInjector();
|
||||||
final AnalysisService analysisService = parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, settings));
|
final AnalysisService analysisService = parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, settings));
|
||||||
|
|
|
@ -26,6 +26,7 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
import org.elasticsearch.common.inject.ModulesBuilder;
|
import org.elasticsearch.common.inject.ModulesBuilder;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.settings.SettingsFilter;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.EnvironmentModule;
|
import org.elasticsearch.env.EnvironmentModule;
|
||||||
|
@ -55,7 +56,7 @@ public class PolishAnalysisTests extends ESTestCase {
|
||||||
|
|
||||||
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
||||||
new AnalysisStempelPlugin().onModule(analysisModule);
|
new AnalysisStempelPlugin().onModule(analysisModule);
|
||||||
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings),
|
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings, new SettingsFilter(settings)),
|
||||||
new EnvironmentModule(new Environment(settings)), analysisModule)
|
new EnvironmentModule(new Environment(settings)), analysisModule)
|
||||||
.createInjector();
|
.createInjector();
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
import org.elasticsearch.common.inject.ModulesBuilder;
|
import org.elasticsearch.common.inject.ModulesBuilder;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.settings.SettingsFilter;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.EnvironmentModule;
|
import org.elasticsearch.env.EnvironmentModule;
|
||||||
|
@ -99,7 +100,7 @@ public class SimplePolishTokenFilterTests extends ESTestCase {
|
||||||
private AnalysisService createAnalysisService(Index index, Settings settings) throws IOException {
|
private AnalysisService createAnalysisService(Index index, Settings settings) throws IOException {
|
||||||
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
AnalysisModule analysisModule = new AnalysisModule(new Environment(settings));
|
||||||
new AnalysisStempelPlugin().onModule(analysisModule);
|
new AnalysisStempelPlugin().onModule(analysisModule);
|
||||||
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings),
|
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings, new SettingsFilter(settings)),
|
||||||
new EnvironmentModule(new Environment(settings)), analysisModule)
|
new EnvironmentModule(new Environment(settings)), analysisModule)
|
||||||
.createInjector();
|
.createInjector();
|
||||||
return parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, settings));
|
return parentInjector.getInstance(AnalysisRegistry.class).build(IndexSettingsModule.newIndexSettings(index, settings));
|
||||||
|
|
Loading…
Reference in New Issue