All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.searchbox.cluster.GetSettings Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
package io.searchbox.cluster;

import io.searchbox.action.AbstractAction;
import io.searchbox.action.GenericResultAbstractAction;

/**
 * Retrieve cluster wide settings.
 *
 * @author cihat keser
 */
public class GetSettings extends GenericResultAbstractAction {

    protected GetSettings(Builder builder) {
        super(builder);
        setURI(buildURI());
    }

    protected String buildURI() {
        return super.buildURI() + "/_cluster/settings";
    }

    @Override
    public String getRestMethodName() {
        return "GET";
    }

    public static class Builder extends AbstractAction.Builder {

        @Override
        public GetSettings build() {
            return new GetSettings(this);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy