Package at.molindo.esi4j.core

Examples of at.molindo.esi4j.core.Esi4JClient


      Settings indexSettings = settingsBuilder().put(_settings)
          .put(Esi4JUtils.getSettings(_settings, "index." + indexName + ".", "index."))
          .put(Esi4JUtils.getSettings(_settings, "esi4j.index." + indexName + ".", "esi4j.index.")).build();

      String clientName = indexSettings.get("esi4j.index.client", DEFAULT_CLIENT);
      Esi4JClient client = _clients.get(clientName);

      if (client == null) {
        // TODO better exception
        throw new NullPointerException("client");
      }
View Full Code Here


    throw new IllegalStateException("store was already assigned to an index named " + index.getName());
  }

  @Override
  public Esi4JClient getClient() {
    Esi4JClient client = null;
    for (Esi4JStore store : _stores) {
      if (client == null) {
        client = store.getClient();
      } else if (!client.getClusterName().equals(store.getClient().getClusterName())) {
        throw new IllegalArgumentException("can't create store among multiple clusters");
      }
    }
    return client;
  }
View Full Code Here

TOP

Related Classes of at.molindo.esi4j.core.Esi4JClient

Copyright © 2018 www.massapicom. 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.