Package com.google.code.hs4j.exception

Examples of com.google.code.hs4j.exception.HandlerSocketException


  }

  private IndexRecord getRecord(int indexId) throws HandlerSocketException {
    IndexRecord indexRecord = this.indexMap.get(indexId);
    if (indexRecord == null) {
      throw new HandlerSocketException("Please open index first,indexId="
          + indexId);
    }
    return indexRecord;
  }
View Full Code Here


        indexName, columns, fcolumns);
    this.indexMap.put(indexId, record);

    List<Session> sessionList = this.connector.getSessionList();
    if (sessionList == null || sessionList.isEmpty()) {
      throw new HandlerSocketException("Empty connections");
    }

    boolean result = true;
    for (Session session : sessionList) {
      Command cmd = this.commandFactory.createOpenIndexCommand(String
View Full Code Here

    if (!cmd.await(this.opTimeout, TimeUnit.MILLISECONDS)) {
      throw new TimeoutException("Operation timeout in " + this.opTimeout
          + " ms.");
    }
    if (cmd.getExceptionMessage() != null) {
      throw new HandlerSocketException(cmd.getExceptionMessage());
    }
  }
View Full Code Here

    while ((session == null || session.isClosed()) && retryCount++ < 6) {
      session = this.sessionList.get(this.sets.incrementAndGet()
          % this.sessionList.size());
    }
    if (session == null || session.isClosed()) {
      throw new HandlerSocketException(
          "Could not find an open connection");
    }
    return session;
  }
View Full Code Here

TOP

Related Classes of com.google.code.hs4j.exception.HandlerSocketException

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.