Skip to content

Commit

Permalink
Remove MonitoringClient from x-pack (#42770)
Browse files Browse the repository at this point in the history
This commit removes the monitoring client from x-pack. This class is a
relic of the TransportClient and was only used in a test.
  • Loading branch information
jaymode authored May 31, 2019
1 parent 56c1ed5 commit b84ba2a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 66 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void testExport() throws Exception {
}

assertBusy(() -> {
MonitoringBulkRequestBuilder bulk = monitoringClient().prepareMonitoringBulk();
MonitoringBulkRequestBuilder bulk = new MonitoringBulkRequestBuilder(client());
monitoringDocs.forEach(bulk::add);
assertEquals(RestStatus.OK, bulk.get().status());
refresh();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.elasticsearch.test.ESIntegTestCase;
import org.elasticsearch.test.store.MockFSIndexStore;
import org.elasticsearch.test.transport.MockTransportService;
import org.elasticsearch.xpack.core.monitoring.client.MonitoringClient;
import org.elasticsearch.xpack.core.monitoring.exporter.MonitoringTemplateUtils;
import org.elasticsearch.xpack.core.monitoring.test.MockPainlessScriptEngine;
import org.elasticsearch.xpack.monitoring.LocalStateMonitoring;
Expand Down Expand Up @@ -74,10 +73,6 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
MockIngestPlugin.class, CommonAnalysisPlugin.class);
}

protected MonitoringClient monitoringClient() {
return new MonitoringClient(client());
}

@Override
protected Set<String> excludeTemplates() {
return new HashSet<>(monitoringTemplateNames());
Expand Down

0 comments on commit b84ba2a

Please sign in to comment.