Package com.aerospike.client

Examples of com.aerospike.client.AerospikeException


    try {
      return bufferQueue.take()
    }
    catch (InterruptedException ie) {
      commandsUsed.decrementAndGet();
      throw new AerospikeException("Buffer pool take interrupted.");
    }
  }
View Full Code Here


        else {
          if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
            existed = false;
          }
          else {
            throw new AerospikeException(resultCode);
          }
        }
  }
View Full Code Here

    return keyArray;   
 
 
  private static Bin[] getBins(Collection<ClBin> bins) throws AerospikeException {
    if (bins == null) {
      throw new AerospikeException(ResultCode.PARAMETER_ERROR, "Null bins");
    }
    Bin[] binArray = new Bin[bins.size()];
    int count = 0;
   
    for (ClBin bin : bins) {
View Full Code Here

    return binArray;
  }

  private static Bin[] getBins(Map<String, Object> bins) throws AerospikeException {
    if (bins == null) {
      throw new AerospikeException(ResultCode.PARAMETER_ERROR, "Null bins");
    }
    Bin[] binArray = new Bin[bins.size()];
    int count = 0;
   
    for (Entry<String,Object> entry : bins.entrySet()) {
View Full Code Here

    return binArray;
  }

  private static String[] getBinNames(Collection<String> binNames) throws AerospikeException {
    if (binNames == null) {
      throw new AerospikeException(ResultCode.PARAMETER_ERROR, "Null bin names");
    }
    String[] binArray = new String[binNames.size()];
    int count = 0;
   
    for (String binName : binNames) {
View Full Code Here

      }
      catch (IOException ioe) {
                for (int j = 0; j < i; j++) {
                  managers[j].close();
                }
        throw new AerospikeException("Failed to construct event manager: " + Util.getErrorMessage(ioe));
      }
    }
   
    int count = 0;
   
View Full Code Here

    catch (Exception e) {
      if (conn != null) {
        node.putAsyncConnection(conn);
      }
      cluster.putByteBuffer(byteBuffer);
      throw new AerospikeException(e);
    }
  }
View Full Code Here

        }
        catch (IOException ioe) {
      failCommand(ioe);
        }
        catch (Exception e) {
      failCommand(new AerospikeException(e));
        }
  }
View Full Code Here

      Log.debug("Node " + node + ": " + Util.getErrorMessage(ioe));
    }
    // IO error means connection to server node is unhealthy.
    // Reflect this status.
    node.decreaseHealth();
    fail(new AerospikeException(ioe));
  }
View Full Code Here

        else {
          if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
              exists = false;
          }
          else {
            throw new AerospikeException(resultCode);
          }
        }
  } 
View Full Code Here

TOP

Related Classes of com.aerospike.client.AerospikeException

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.