
io.searchbox.indices.CloseIndex 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.indices;
import io.searchbox.action.GenericResultAbstractAction;
/**
* @author cihat keser
*/
public class CloseIndex extends GenericResultAbstractAction {
protected CloseIndex(Builder builder) {
super(builder);
this.indexName = builder.index;
setURI(buildURI());
}
@Override
protected String buildURI() {
return super.buildURI() + "/_close";
}
@Override
public String getRestMethodName() {
return "POST";
}
public static class Builder extends GenericResultAbstractAction.Builder {
private String index;
public Builder(String index) {
this.index = index;
}
@Override
public CloseIndex build() {
return new CloseIndex(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy