Package com.aerospike.client

Examples of com.aerospike.client.AerospikeException


    }

    if (! name.equals(infoName)) {
      // Set node to inactive immediately.
      active = false;
      throw new AerospikeException("Node name has changed. Old=" + name + " New=" + infoName);
    }
  }
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

            }
          }         
          command.conn.register(command, selector);
        }
        catch (Exception e) {
              command.retryAfterInit(new AerospikeException(e));
        }       
      }     
    }
View Full Code Here

        catch (AerospikeException ae) {
      // Fail without retry on non-network errors.
      command.failOnApplicationError(ae);
        }
        catch (IOException ioe) {
          command.retryAfterInit(new AerospikeException(ioe));
        }
        catch (Exception e) {
      // Fail without retry on unknown errors.
      command.failOnApplicationError(new AerospikeException(e));
        }
    }
View Full Code Here

        in.close();
      }
      return Base64.encode(bytes, 0, bytes.length, false);
    }
    catch (Exception e) {
      throw new AerospikeException("Failed to read " + path, e);
    }
  }
View Full Code Here

            }
          }         
          command.conn.register(command, selector);
        }
        catch (Exception e) {
              command.retryAfterInit(new AerospikeException(e));
        }       
      }     
    }
View Full Code Here

        catch (AerospikeException ae) {
      // Fail without retry on non-network errors.
      command.failOnApplicationError(ae);
        }
        catch (IOException ioe) {
          command.retryAfterInit(new AerospikeException(ioe));
        }
        catch (Exception e) {
      // Fail without retry on unknown errors.
      command.failOnApplicationError(new AerospikeException(e));
        }
    }
View Full Code Here

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

      try {
        // Wait until byteBuffer becomes available.
        return bufferQueue.take();
      }
      catch (InterruptedException ie) {
        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

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.