|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aerospike.client.ResultCode
public final class ResultCode
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 |
---|
public static final int COMMAND_REJECTED
public static final int QUERY_TERMINATED
public static final int SCAN_TERMINATED
public static final int INVALID_NODE_ERROR
public static final int PARSE_ERROR
public static final int SERIALIZE_ERROR
public static final int OK
public static final int SERVER_ERROR
public static final int KEY_NOT_FOUND_ERROR
public static final int GENERATION_ERROR
public static final int PARAMETER_ERROR
public static final int KEY_EXISTS_ERROR
public static final int BIN_EXISTS_ERROR
public static final int CLUSTER_KEY_MISMATCH
public static final int SERVER_MEM_ERROR
public static final int TIMEOUT
public static final int NO_XDS
public static final int SERVER_NOT_AVAILABLE
public static final int BIN_TYPE_ERROR
public static final int RECORD_TOO_BIG
public static final int KEY_BUSY
public static final int SCAN_ABORT
public static final int UNSUPPORTED_FEATURE
public static final int BIN_NOT_FOUND
public static final int DEVICE_OVERLOAD
public static final int KEY_MISMATCH
public static final int UDF_BAD_RESPONSE
public static final int INDEX_FOUND
public static final int INDEX_NOTFOUND
public static final int INDEX_OOM
public static final int INDEX_NOTREADABLE
public static final int INDEX_GENERIC
public static final int INDEX_NAME_MAXLEN
public static final int INDEX_MAXCOUNT
public static final int QUERY_ABORTED
public static final int QUERY_QUEUEFULL
public static final int QUERY_TIMEOUT
public static final int QUERY_GENERIC
Constructor Detail |
---|
public ResultCode()
Method Detail |
---|
public static boolean keepConnection(int resultCode)
public static String getResultString(int resultCode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |