Examples of validateDynamicSetting()


Examples of org.elasticsearch.cluster.settings.DynamicSettings.validateDynamicSetting()

    ImmutableSettings.Builder dynamicSettings = ImmutableSettings.builder();

    for (Map.Entry<String, String> e : settings.getAsMap().entrySet()) {
      if (indexDynamicSettings.hasDynamicSetting(e.getKey())) {
        String error = indexDynamicSettings.validateDynamicSetting(e.getKey(), e.getValue());
        if (error == null) {
          dynamicSettings.put(e.getKey(), e.getValue());
        } else {
          // TODO better error handling
          throw new IllegalArgumentException("index setting " + e.getKey() + " has invalid value '"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.