@Inject public TransportCacheStatsPerFieldAction(Settings settings, ClusterName clusterName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService ) { super(settings, clusterName, threadPool, clusterService, transportService); this.indicesService = indicesService; InetAddress address = NetworkUtils.getLocalAddress(); if (address != null) { this.hostname = address.getHostName(); } }
protected Settings buildNodeSettings() { // Build settings ImmutableSettings.Builder builder = ImmutableSettings.settingsBuilder() .put("node.name", "node-test-" + System.currentTimeMillis()) .put("node.data", true) .put("cluster.name", "cluster-test-" + NetworkUtils.getLocalAddress().getHostName()) .put("index.store.type", "memory") .put("index.store.fs.memory.enabled", "true") .put("gateway.type", "none") .put("path.data", "./target/elasticsearch-test/data") .put("path.work", "./target/elasticsearch-test/work") .put("path.logs", "./target/elasticsearch-test/logs") .put("index.number_of_shards", "1") .put("index.number_of_replicas", "0") .put("cluster.routing.schedule", "50ms") .put("node.local", true); if (settings != null) { builder.put(settings); } return builder.build(); } }
protected Settings buildNodeSettings() { // Build settings ImmutableSettings.Builder builder = ImmutableSettings.settingsBuilder() .put("node.name", "node-test-" + System.currentTimeMillis()) .put("node.data", true) .put("cluster.name", "cluster-test-" + NetworkUtils.getLocalAddress().getHostName()) .put("index.store.type", "memory") .put("index.store.fs.memory.enabled", "true") .put("gateway.type", "none") .put("path.data", "./target/elasticsearch-test/data") .put("path.work", "./target/elasticsearch-test/work") .put("path.logs", "./target/elasticsearch-test/logs") .put("index.number_of_shards", "1") .put("index.number_of_replicas", "0") .put("cluster.routing.schedule", "50ms") .put("node.local", true); if (settings != null) { builder.put(settings); } return builder.build(); } }