Package com.aerospike.client
Class ResultCode
java.lang.Object
com.aerospike.client.ResultCode
Database operation error codes. The positive numbers align with the server
side file proto.h.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Operation not allowed in current configuration.static final int
Async delay queue is full.static final int
Batch functionality has been disabled.static final int
One or more keys failed in a batch.static final int
Batch max requests have been exceeded.static final int
All batch queues are full.static final int
Bin already exists on a create-only operation.static final int
Bin name length greater than 15 characters or maximum bins exceeded.static final int
Bin not found on update-only operation.static final int
Operation is not supported with configured bin type.static final int
Generic client error.static final int
Expected cluster was not received.static final int
Device not keeping up with writes.static final int
Map element exists in CREATE_ONLY write mode.static final int
Map element not found in UPDATE_ONLY write mode.static final int
Attempt to use an Enterprise feature on a Community server or a server without the applicable feature key.static final int
Password has expired.static final int
Login session expired.static final int
Operation not allowed at this time.static final int
The command was not performed because the filter was false.static final int
Forbidden password (e.g.static final int
On modifying a record with unexpected generation.static final int
Security protocol not followed.static final int
Secondary index already exists.static final int
static final int
Generic secondary index error.static final int
Maximum number of indicies exceeded.static final int
Index name maximum length exceeded.static final int
Requested secondary index does not exist.static final int
Secondary index not available.static final int
Secondary index memory space exceeded.static final int
Administration command is invalid.static final int
Security credential is invalid.static final int
Administration field is invalid.static final int
Invalid namespace.static final int
Chosen node is not currently active.static final int
Password is invalid.static final int
Privilege is invalid.static final int
Invalid quota value.static final int
Role name is invalid.static final int
User name is invalid.static final int
Invalid IP address whitelist.static final int
Too many concurrent operations on the same record.static final int
On create-only (write unique) operations on a record that already exists.static final int
Key type mismatch.static final int
On retrieving, touching or replacing a record that doesn't exist.static final int
Write command loses conflict to XDR.static final int
Max errors limit reached.static final int
Max retries limit reached.static final int
Transaction was already aborted.static final int
This record has been locked by a previous update in this transaction.static final int
Transaction record blocked by a different transaction.static final int
Transaction was already committed.static final int
Transaction deadline reached without a successful commit or abort.static final int
This transaction has already started.static final int
Transaction write command limit (4096) exceeded.static final int
Transaction read version mismatch identified during commit.static final int
Max connections would be exceeded.static final int
No response received from server.static final int
User must be authentication before performing database operations.static final int
Command not allowed because sender IP address not whitelisted.static final int
Operation was successful.static final int
The operation cannot be applied to the current bin value on the server.static final int
Bad parameter(s) were passed in database operation call.static final int
Client parse error.static final int
Partition is unavailable.static final int
Secondary index query aborted.static final int
There are no more records left for query.static final int
Generic query error.static final int
Secondary index queue full.static final int
Query was terminated by user.static final int
Secondary index query timed out on server.static final int
Quota exceeded.static final int
Quotas not enabled on server.static final int
Record size exceeds limit.static final int
Role already exists.static final int
User does not possess the required role to perform the database operation.static final int
Scan aborted by server.static final int
Scan was terminated by user.static final int
Security functionality not enabled by connected server.static final int
Security functionality not supported by connected server.static final int
Security type not supported by connected server.static final int
Client serialization error.static final int
Unknown server failure.static final int
Server has run out of memory.static final int
Connection to server failed.static final int
Client or server has timed out.static final int
Transaction commit called, but the transaction was already aborted.static final int
Transaction abort called, but the transaction was already committed.static final int
Transaction failed.static final int
A user defined function returned an error code.static final int
Unsupported Server Feature (e.g.static final int
User was previously created.static final int
Write can't complete until XDR finishes shipping. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getResultString
(int resultCode) Return result code as a string.static boolean
keepConnection
(int resultCode) Should connection be put back into pool.
-
Field Details
-
TXN_ALREADY_ABORTED
public static final int TXN_ALREADY_ABORTEDTransaction commit called, but the transaction was already aborted.- See Also:
-
TXN_ALREADY_COMMITTED
public static final int TXN_ALREADY_COMMITTEDTransaction abort called, but the transaction was already committed.- See Also:
-
TXN_FAILED
public static final int TXN_FAILEDTransaction failed.- See Also:
-
BATCH_FAILED
public static final int BATCH_FAILEDOne or more keys failed in a batch.- See Also:
-
NO_RESPONSE
public static final int NO_RESPONSENo response received from server.- See Also:
-
MAX_ERROR_RATE
public static final int MAX_ERROR_RATEMax errors limit reached.- See Also:
-
MAX_RETRIES_EXCEEDED
public static final int MAX_RETRIES_EXCEEDEDMax retries limit reached.- See Also:
-
SERIALIZE_ERROR
public static final int SERIALIZE_ERRORClient serialization error.- See Also:
-
ASYNC_QUEUE_FULL
public static final int ASYNC_QUEUE_FULLAsync delay queue is full.- See Also:
-
SERVER_NOT_AVAILABLE
public static final int SERVER_NOT_AVAILABLEConnection to server failed.- See Also:
-
NO_MORE_CONNECTIONS
public static final int NO_MORE_CONNECTIONSMax connections would be exceeded. There are no more available connections.- See Also:
-
QUERY_TERMINATED
public static final int QUERY_TERMINATEDQuery was terminated by user.- See Also:
-
SCAN_TERMINATED
public static final int SCAN_TERMINATEDScan was terminated by user.- See Also:
-
INVALID_NODE_ERROR
public static final int INVALID_NODE_ERRORChosen node is not currently active.- See Also:
-
PARSE_ERROR
public static final int PARSE_ERRORClient parse error.- See Also:
-
CLIENT_ERROR
public static final int CLIENT_ERRORGeneric client error.- See Also:
-
OK
public static final int OKOperation was successful.- See Also:
-
SERVER_ERROR
public static final int SERVER_ERRORUnknown server failure.- See Also:
-
KEY_NOT_FOUND_ERROR
public static final int KEY_NOT_FOUND_ERROROn retrieving, touching or replacing a record that doesn't exist.- See Also:
-
GENERATION_ERROR
public static final int GENERATION_ERROROn modifying a record with unexpected generation.- See Also:
-
PARAMETER_ERROR
public static final int PARAMETER_ERRORBad parameter(s) were passed in database operation call.- See Also:
-
KEY_EXISTS_ERROR
public static final int KEY_EXISTS_ERROROn create-only (write unique) operations on a record that already exists.- See Also:
-
BIN_EXISTS_ERROR
public static final int BIN_EXISTS_ERRORBin already exists on a create-only operation.- See Also:
-
CLUSTER_KEY_MISMATCH
public static final int CLUSTER_KEY_MISMATCHExpected cluster was not received.- See Also:
-
SERVER_MEM_ERROR
public static final int SERVER_MEM_ERRORServer has run out of memory.- See Also:
-
TIMEOUT
public static final int TIMEOUTClient or server has timed out.- See Also:
-
ALWAYS_FORBIDDEN
public static final int ALWAYS_FORBIDDENOperation not allowed in current configuration.- See Also:
-
PARTITION_UNAVAILABLE
public static final int PARTITION_UNAVAILABLEPartition is unavailable.- See Also:
-
BIN_TYPE_ERROR
public static final int BIN_TYPE_ERROROperation is not supported with configured bin type.- See Also:
-
RECORD_TOO_BIG
public static final int RECORD_TOO_BIGRecord size exceeds limit.- See Also:
-
KEY_BUSY
public static final int KEY_BUSYToo many concurrent operations on the same record.- See Also:
-
SCAN_ABORT
public static final int SCAN_ABORTScan aborted by server.- See Also:
-
UNSUPPORTED_FEATURE
public static final int UNSUPPORTED_FEATUREUnsupported Server Feature (e.g. Scan + UDF)- See Also:
-
BIN_NOT_FOUND
public static final int BIN_NOT_FOUNDBin not found on update-only operation.- See Also:
-
DEVICE_OVERLOAD
public static final int DEVICE_OVERLOADDevice not keeping up with writes.- See Also:
-
KEY_MISMATCH
public static final int KEY_MISMATCHKey type mismatch.- See Also:
-
INVALID_NAMESPACE
public static final int INVALID_NAMESPACEInvalid namespace.- See Also:
-
BIN_NAME_TOO_LONG
public static final int BIN_NAME_TOO_LONGBin name length greater than 15 characters or maximum bins exceeded.- See Also:
-
FAIL_FORBIDDEN
public static final int FAIL_FORBIDDENOperation not allowed at this time.- See Also:
-
ELEMENT_NOT_FOUND
public static final int ELEMENT_NOT_FOUNDMap element not found in UPDATE_ONLY write mode.- See Also:
-
ELEMENT_EXISTS
public static final int ELEMENT_EXISTSMap element exists in CREATE_ONLY write mode.- See Also:
-
ENTERPRISE_ONLY
public static final int ENTERPRISE_ONLYAttempt to use an Enterprise feature on a Community server or a server without the applicable feature key.- See Also:
-
OP_NOT_APPLICABLE
public static final int OP_NOT_APPLICABLEThe operation cannot be applied to the current bin value on the server.- See Also:
-
FILTERED_OUT
public static final int FILTERED_OUTThe command was not performed because the filter was false.- See Also:
-
LOST_CONFLICT
public static final int LOST_CONFLICTWrite command loses conflict to XDR.- See Also:
-
XDR_KEY_BUSY
public static final int XDR_KEY_BUSYWrite can't complete until XDR finishes shipping.- See Also:
-
QUERY_END
public static final int QUERY_ENDThere are no more records left for query.- See Also:
-
SECURITY_NOT_SUPPORTED
public static final int SECURITY_NOT_SUPPORTEDSecurity functionality not supported by connected server.- See Also:
-
SECURITY_NOT_ENABLED
public static final int SECURITY_NOT_ENABLEDSecurity functionality not enabled by connected server.- See Also:
-
SECURITY_SCHEME_NOT_SUPPORTED
public static final int SECURITY_SCHEME_NOT_SUPPORTEDSecurity type not supported by connected server.- See Also:
-
INVALID_COMMAND
public static final int INVALID_COMMANDAdministration command is invalid.- See Also:
-
INVALID_FIELD
public static final int INVALID_FIELDAdministration field is invalid.- See Also:
-
ILLEGAL_STATE
public static final int ILLEGAL_STATESecurity protocol not followed.- See Also:
-
INVALID_USER
public static final int INVALID_USERUser name is invalid.- See Also:
-
USER_ALREADY_EXISTS
public static final int USER_ALREADY_EXISTSUser was previously created.- See Also:
-
INVALID_PASSWORD
public static final int INVALID_PASSWORDPassword is invalid.- See Also:
-
EXPIRED_PASSWORD
public static final int EXPIRED_PASSWORDPassword has expired.- See Also:
-
FORBIDDEN_PASSWORD
public static final int FORBIDDEN_PASSWORDForbidden password (e.g. recently used)- See Also:
-
INVALID_CREDENTIAL
public static final int INVALID_CREDENTIALSecurity credential is invalid.- See Also:
-
EXPIRED_SESSION
public static final int EXPIRED_SESSIONLogin session expired.- See Also:
-
INVALID_ROLE
public static final int INVALID_ROLERole name is invalid.- See Also:
-
ROLE_ALREADY_EXISTS
public static final int ROLE_ALREADY_EXISTSRole already exists.- See Also:
-
INVALID_PRIVILEGE
public static final int INVALID_PRIVILEGEPrivilege is invalid.- See Also:
-
INVALID_WHITELIST
public static final int INVALID_WHITELISTInvalid IP address whitelist.- See Also:
-
QUOTAS_NOT_ENABLED
public static final int QUOTAS_NOT_ENABLEDQuotas not enabled on server.- See Also:
-
INVALID_QUOTA
public static final int INVALID_QUOTAInvalid quota value.- See Also:
-
NOT_AUTHENTICATED
public static final int NOT_AUTHENTICATEDUser must be authentication before performing database operations.- See Also:
-
ROLE_VIOLATION
public static final int ROLE_VIOLATIONUser does not possess the required role to perform the database operation.- See Also:
-
NOT_WHITELISTED
public static final int NOT_WHITELISTEDCommand not allowed because sender IP address not whitelisted.- See Also:
-
QUOTA_EXCEEDED
public static final int QUOTA_EXCEEDEDQuota exceeded.- See Also:
-
UDF_BAD_RESPONSE
public static final int UDF_BAD_RESPONSEA user defined function returned an error code.- See Also:
-
MRT_BLOCKED
public static final int MRT_BLOCKEDTransaction record blocked by a different transaction.- See Also:
-
MRT_VERSION_MISMATCH
public static final int MRT_VERSION_MISMATCHTransaction read version mismatch identified during commit. Some other command changed the record outside of the transaction.- See Also:
-
MRT_EXPIRED
public static final int MRT_EXPIREDTransaction deadline reached without a successful commit or abort.- See Also:
-
MRT_TOO_MANY_WRITES
public static final int MRT_TOO_MANY_WRITESTransaction write command limit (4096) exceeded.- See Also:
-
MRT_COMMITTED
public static final int MRT_COMMITTEDTransaction was already committed.- See Also:
-
MRT_ABORTED
public static final int MRT_ABORTEDTransaction was already aborted.- See Also:
-
MRT_ALREADY_LOCKED
public static final int MRT_ALREADY_LOCKEDThis record has been locked by a previous update in this transaction.- See Also:
-
MRT_MONITOR_EXISTS
public static final int MRT_MONITOR_EXISTSThis transaction has already started. Writing to the same transaction with independent threads is unsafe.- See Also:
-
BATCH_DISABLED
public static final int BATCH_DISABLEDBatch functionality has been disabled.- See Also:
-
BATCH_MAX_REQUESTS_EXCEEDED
public static final int BATCH_MAX_REQUESTS_EXCEEDEDBatch max requests have been exceeded.- See Also:
-
BATCH_QUEUES_FULL
public static final int BATCH_QUEUES_FULLAll batch queues are full.- See Also:
-
INDEX_ALREADY_EXISTS
public static final int INDEX_ALREADY_EXISTSSecondary index already exists.- See Also:
-
INDEX_FOUND
public static final int INDEX_FOUND- See Also:
-
INDEX_NOTFOUND
public static final int INDEX_NOTFOUNDRequested secondary index does not exist.- See Also:
-
INDEX_OOM
public static final int INDEX_OOMSecondary index memory space exceeded.- See Also:
-
INDEX_NOTREADABLE
public static final int INDEX_NOTREADABLESecondary index not available.- See Also:
-
INDEX_GENERIC
public static final int INDEX_GENERICGeneric secondary index error.- See Also:
-
INDEX_NAME_MAXLEN
public static final int INDEX_NAME_MAXLENIndex name maximum length exceeded.- See Also:
-
INDEX_MAXCOUNT
public static final int INDEX_MAXCOUNTMaximum number of indicies exceeded.- See Also:
-
QUERY_ABORTED
public static final int QUERY_ABORTEDSecondary index query aborted.- See Also:
-
QUERY_QUEUEFULL
public static final int QUERY_QUEUEFULLSecondary index queue full.- See Also:
-
QUERY_TIMEOUT
public static final int QUERY_TIMEOUTSecondary index query timed out on server.- See Also:
-
QUERY_GENERIC
public static final int QUERY_GENERICGeneric query error.- See Also:
-
-
Constructor Details
-
ResultCode
public ResultCode()
-
-
Method Details
-
keepConnection
public static boolean keepConnection(int resultCode) Should connection be put back into pool. -
getResultString
Return result code as a string.
-