
io.searchbox.cluster.NodesInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jest-common Show documentation
Show all versions of jest-common Show documentation
ElasticSearch Java REST client - shared library package
package io.searchbox.cluster;
import io.searchbox.action.AbstractMultiINodeActionBuilder;
import io.searchbox.action.GenericResultAbstractAction;
/**
* @author Dogukan Sonmez
* @author cihat keser
*/
public class NodesInfo extends GenericResultAbstractAction {
protected NodesInfo(Builder builder) {
super(builder);
setURI(buildURI());
}
protected String buildURI() {
return super.buildURI() + "/_nodes/" + nodes;
}
@Override
public String getRestMethodName() {
return "GET";
}
@Override
public String getPathToResult() {
return "nodes";
}
public static class Builder extends AbstractMultiINodeActionBuilder {
public Builder withSettings() {
return addCleanApiParameter("settings");
}
public Builder withOs() {
return addCleanApiParameter("os");
}
public Builder withProcess() {
return addCleanApiParameter("process");
}
public Builder withJvm() {
return addCleanApiParameter("jvm");
}
public Builder withThreadPool() {
return addCleanApiParameter("thread_pool");
}
public Builder withNetwork() {
return addCleanApiParameter("network");
}
public Builder withTransport() {
return addCleanApiParameter("transport");
}
public Builder withHttp() {
return addCleanApiParameter("http");
}
public Builder withPlugins() {
return addCleanApiParameter("plugins");
}
@Override
public NodesInfo build() {
return new NodesInfo(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy