Rename static DiscoveryNode#ingestNode(Settings) to isIngestNode

This commit is contained in:
javanna 2016-03-30 14:58:57 +02:00 committed by Luca Cavanna
parent 49e952e272
commit 7751b45f0f
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class DiscoveryNode implements Writeable<DiscoveryNode>, ToXContent {
return Node.NODE_DATA_SETTING.get(settings);
}
public static boolean ingestNode(Settings settings) {
public static boolean isIngestNode(Settings settings) {
return Node.NODE_INGEST_SETTING.get(settings);
}

View File

@ -220,7 +220,7 @@ public class Node implements Closeable {
modules.add(new ClusterModule(this.settings));
modules.add(new IndicesModule());
modules.add(new SearchModule(settings, namedWriteableRegistry));
modules.add(new ActionModule(DiscoveryNode.ingestNode(settings), false));
modules.add(new ActionModule(DiscoveryNode.isIngestNode(settings), false));
modules.add(new GatewayModule(settings));
modules.add(new NodeClientModule());
modules.add(new ResourceWatcherModule());