com.aerospike.client
Class ResultCode

java.lang.Object
  extended by com.aerospike.client.ResultCode

public final class ResultCode
extends Object

Database operation error codes. The positive numbers align with the server side file proto.h.


Field Summary
static int BIN_EXISTS_ERROR
          On create-only (write unique) operations on a bin that already exists.
static int BIN_NOT_FOUND
          Specified bin name does not exist in record.
static int BIN_TYPE_ERROR
          Operation is not supported with configured bin type (single-bin or multi-bin).
static int CLUSTER_KEY_MISMATCH
          Expected cluster ID was not received.
static int COMMAND_REJECTED
          Asynchronous max concurrent database commands have been exceeded and therefore rejected.
static int DEVICE_OVERLOAD
          Specified bin name does not exist in record.
static int GENERATION_ERROR
          On modifying a record with unexpected generation.
static int INDEX_FOUND
          Secondary index already exists.
static int INDEX_GENERIC
          Generic secondary index error.
static int INDEX_MAXCOUNT
          Maximum number of indicies exceeded.
static int INDEX_NAME_MAXLEN
          Index name maximum length exceeded.
static int INDEX_NOTFOUND
          Requested secondary index does not exist.
static int INDEX_NOTREADABLE
          Secondary index not available.
static int INDEX_OOM
          Secondary index memory space exceeded.
static int INVALID_NODE_ERROR
          Chosen node is not currently active.
static int KEY_BUSY
          Too many concurrent operations on the same record.
static int KEY_EXISTS_ERROR
          On create-only (write unique) operations on a record that already exists.
static int KEY_MISMATCH
          Key type mismatch.
static int KEY_NOT_FOUND_ERROR
          On retrieving, touching or replacing a record that doesn't exist.
static int NO_XDS
          XDS product is not available.
static int OK
          Operation was successful.
static int PARAMETER_ERROR
          Bad parameter(s) were passed in database operation call.
static int PARSE_ERROR
          Client parse error.
static int QUERY_ABORTED
          Secondary index query aborted.
static int QUERY_GENERIC
          Generic query error.
static int QUERY_QUEUEFULL
          Secondary index queue full.
static int QUERY_TERMINATED
          Query was terminated by user.
static int QUERY_TIMEOUT
          Secondary index query timed out on server.
static int RECORD_TOO_BIG
          Record size exceeds limit.
static int SCAN_ABORT
          Scan aborted by server.
static int SCAN_TERMINATED
          Scan was terminated by user.
static int SERIALIZE_ERROR
          Client serialization error.
static int SERVER_ERROR
          Unknown server failure.
static int SERVER_MEM_ERROR
          Server has run out of memory.
static int SERVER_NOT_AVAILABLE
          Server is not accepting requests.
static int TIMEOUT
          Client or server has timed out.
static int UDF_BAD_RESPONSE
          A user defined function returned an error code.
static int UNSUPPORTED_FEATURE
          Unsupported Server Feature (e.g.
 
Constructor Summary
ResultCode()
           
 
Method Summary
static String getResultString(int resultCode)
          Return result code as a string.
static boolean keepConnection(int resultCode)
          Should connection be put back into pool.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_REJECTED

public static final int COMMAND_REJECTED
Asynchronous max concurrent database commands have been exceeded and therefore rejected.

See Also:
Constant Field Values

QUERY_TERMINATED

public static final int QUERY_TERMINATED
Query was terminated by user.

See Also:
Constant Field Values

SCAN_TERMINATED

public static final int SCAN_TERMINATED
Scan was terminated by user.

See Also:
Constant Field Values

INVALID_NODE_ERROR

public static final int INVALID_NODE_ERROR
Chosen node is not currently active.

See Also:
Constant Field Values

PARSE_ERROR

public static final int PARSE_ERROR
Client parse error.

See Also:
Constant Field Values

SERIALIZE_ERROR

public static final int SERIALIZE_ERROR
Client serialization error.

See Also:
Constant Field Values

OK

public static final int OK
Operation was successful.

See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
Unknown server failure.

See Also:
Constant Field Values

KEY_NOT_FOUND_ERROR

public static final int KEY_NOT_FOUND_ERROR
On retrieving, touching or replacing a record that doesn't exist.

See Also:
Constant Field Values

GENERATION_ERROR

public static final int GENERATION_ERROR
On modifying a record with unexpected generation.

See Also:
Constant Field Values

PARAMETER_ERROR

public static final int PARAMETER_ERROR
Bad parameter(s) were passed in database operation call.

See Also:
Constant Field Values

KEY_EXISTS_ERROR

public static final int KEY_EXISTS_ERROR
On create-only (write unique) operations on a record that already exists.

See Also:
Constant Field Values

BIN_EXISTS_ERROR

public static final int BIN_EXISTS_ERROR
On create-only (write unique) operations on a bin that already exists.

See Also:
Constant Field Values

CLUSTER_KEY_MISMATCH

public static final int CLUSTER_KEY_MISMATCH
Expected cluster ID was not received.

See Also:
Constant Field Values

SERVER_MEM_ERROR

public static final int SERVER_MEM_ERROR
Server has run out of memory.

See Also:
Constant Field Values

TIMEOUT

public static final int TIMEOUT
Client or server has timed out.

See Also:
Constant Field Values

NO_XDS

public static final int NO_XDS
XDS product is not available.

See Also:
Constant Field Values

SERVER_NOT_AVAILABLE

public static final int SERVER_NOT_AVAILABLE
Server is not accepting requests.

See Also:
Constant Field Values

BIN_TYPE_ERROR

public static final int BIN_TYPE_ERROR
Operation is not supported with configured bin type (single-bin or multi-bin).

See Also:
Constant Field Values

RECORD_TOO_BIG

public static final int RECORD_TOO_BIG
Record size exceeds limit.

See Also:
Constant Field Values

KEY_BUSY

public static final int KEY_BUSY
Too many concurrent operations on the same record.

See Also:
Constant Field Values

SCAN_ABORT

public static final int SCAN_ABORT
Scan aborted by server.

See Also:
Constant Field Values

UNSUPPORTED_FEATURE

public static final int UNSUPPORTED_FEATURE
Unsupported Server Feature (e.g. Scan + UDF)

See Also:
Constant Field Values

BIN_NOT_FOUND

public static final int BIN_NOT_FOUND
Specified bin name does not exist in record.

See Also:
Constant Field Values

DEVICE_OVERLOAD

public static final int DEVICE_OVERLOAD
Specified bin name does not exist in record.

See Also:
Constant Field Values

KEY_MISMATCH

public static final int KEY_MISMATCH
Key type mismatch.

See Also:
Constant Field Values

UDF_BAD_RESPONSE

public static final int UDF_BAD_RESPONSE
A user defined function returned an error code.

See Also:
Constant Field Values

INDEX_FOUND

public static final int INDEX_FOUND
Secondary index already exists.

See Also:
Constant Field Values

INDEX_NOTFOUND

public static final int INDEX_NOTFOUND
Requested secondary index does not exist.

See Also:
Constant Field Values

INDEX_OOM

public static final int INDEX_OOM
Secondary index memory space exceeded.

See Also:
Constant Field Values

INDEX_NOTREADABLE

public static final int INDEX_NOTREADABLE
Secondary index not available.

See Also:
Constant Field Values

INDEX_GENERIC

public static final int INDEX_GENERIC
Generic secondary index error.

See Also:
Constant Field Values

INDEX_NAME_MAXLEN

public static final int INDEX_NAME_MAXLEN
Index name maximum length exceeded.

See Also:
Constant Field Values

INDEX_MAXCOUNT

public static final int INDEX_MAXCOUNT
Maximum number of indicies exceeded.

See Also:
Constant Field Values

QUERY_ABORTED

public static final int QUERY_ABORTED
Secondary index query aborted.

See Also:
Constant Field Values

QUERY_QUEUEFULL

public static final int QUERY_QUEUEFULL
Secondary index queue full.

See Also:
Constant Field Values

QUERY_TIMEOUT

public static final int QUERY_TIMEOUT
Secondary index query timed out on server.

See Also:
Constant Field Values

QUERY_GENERIC

public static final int QUERY_GENERIC
Generic query error.

See Also:
Constant Field Values
Constructor Detail

ResultCode

public ResultCode()
Method Detail

keepConnection

public static boolean keepConnection(int resultCode)
Should connection be put back into pool.


getResultString

public static String getResultString(int resultCode)
Return result code as a string.



Copyright © 2012–2014 Aerospike, Inc. All rights reserved.