APISonar


org.elasticsearch.action.admin.cluster.node.info.NodesInfoRequest.os

> org > elasticsearch > action > admin > cluster > node > info > NodesInfoRequest > os
org APIs elasticsearch APIs action APIs admin APIs cluster APIs node APIs info APIs NodesInfoRequest APIs os APIs

Example 1
private void assertMetrics(List<String> metrics, NodesInfoRequest nodesInfoRequest) {
        assertTrue((metrics.contains("http") && nodesInfoRequest.http()) || metrics.contains("http") == false);
        assertTrue((metrics.contains("ingest") && nodesInfoRequest.ingest()) || metrics.contains("ingest") == false);
        assertTrue((metrics.contains("indices") && nodesInfoRequest.indices()) || metrics.contains("indices") == false);
        assertTrue((metrics.contains("jvm") && nodesInfoRequest.jvm()) || metrics.contains("jvm") == false);
        assertTrue((metrics.contains("os") && nodesInfoRequest.os()) || metrics.contains("os") == false);
        assertTrue((metrics.contains("plugins") && nodesInfoRequest.plugins()) || metrics.contains("plugins") == false);
        assertTrue((metrics.contains("process") && nodesInfoRequest.process()) || metrics.contains("process") == false);
        assertTrue((metrics.contains("settings") && nodesInfoRequest.settings()) || metrics.contains("settings") == false);
        assertTrue((metrics.contains("thread_pool") && nodesInfoRequest.threadPool()) || metrics.contains("thread_pool") == false);
        assertTrue((metrics.contains("transport") && nodesInfoRequest.transport()) || metrics.contains("transport") == false);
    }
Example 2
private void assertAllMetricsTrue(NodesInfoRequest nodesInfoRequest) {
        assertTrue(nodesInfoRequest.http());
        assertTrue(nodesInfoRequest.ingest());
        assertTrue(nodesInfoRequest.indices());
        assertTrue(nodesInfoRequest.jvm());
        assertTrue(nodesInfoRequest.os());
        assertTrue(nodesInfoRequest.plugins());
        assertTrue(nodesInfoRequest.process());
        assertTrue(nodesInfoRequest.settings());
        assertTrue(nodesInfoRequest.threadPool());
        assertTrue(nodesInfoRequest.transport());
    }