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 intOperation not allowed in current configuration.static final intAsync delay queue is full.static final intBatch functionality has been disabled.static final intOne or more keys failed in a batch.static final intBatch max requests have been exceeded.static final intAll batch queues are full.static final intBin already exists on a create-only operation.static final intBin name length greater than 15 characters or maximum bins exceeded.static final intBin not found on update-only operation.static final intOperation is not supported with configured bin type.static final intGeneric client error.static final intExpected cluster was not received.static final intDevice not keeping up with writes.static final intMap element exists in CREATE_ONLY write mode.static final intMap element not found in UPDATE_ONLY write mode.static final intAttempt to use an Enterprise feature on a Community server or a server without the applicable feature key.static final intPassword has expired.static final intLogin session expired.static final intOperation not allowed at this time.static final intThe command was not performed because the filter was false.static final intForbidden password (e.g.static final intOn modifying a record with unexpected generation.static final intSecurity protocol not followed.static final intSecondary index already exists.static final intstatic final intGeneric secondary index error.static final intMaximum number of indicies exceeded.static final intIndex name maximum length exceeded.static final intRequested secondary index does not exist.static final intSecondary index not available.static final intSecondary index memory space exceeded.static final intAdministration command is invalid.static final intSecurity credential is invalid.static final intAdministration field is invalid.static final intInvalid namespace.static final intChosen node is not currently active.static final intPassword is invalid.static final intPrivilege is invalid.static final intInvalid quota value.static final intRole name is invalid.static final intUser name is invalid.static final intInvalid IP address whitelist.static final intToo many concurrent operations on the same record.static final intOn create-only (write unique) operations on a record that already exists.static final intKey type mismatch.static final intOn retrieving, touching or replacing a record that doesn't exist.static final intWrite command loses conflict to XDR.static final intMax errors limit reached.static final intMax retries limit reached.static final intMRT was already aborted.static final intMRT record blocked by a different transaction.static final intMRT was already committed.static final intMRT deadline reached without a successful commit or abort.static final intMRT write command limit (4096) exceeded.static final intMRT read version mismatch identified during commit.static final intMax connections would be exceeded.static final intNo response received from server.static final intUser must be authentication before performing database operations.static final intCommand not allowed because sender IP address not whitelisted.static final intOperation was successful.static final intThe operation cannot be applied to the current bin value on the server.static final intBad parameter(s) were passed in database operation call.static final intClient parse error.static final intPartition is unavailable.static final intSecondary index query aborted.static final intThere are no more records left for query.static final intGeneric query error.static final intSecondary index queue full.static final intQuery was terminated by user.static final intSecondary index query timed out on server.static final intQuota exceeded.static final intQuotas not enabled on server.static final intRecord size exceeds limit.static final intRole already exists.static final intUser does not possess the required role to perform the database operation.static final intScan aborted by server.static final intScan was terminated by user.static final intSecurity functionality not enabled by connected server.static final intSecurity functionality not supported by connected server.static final intSecurity type not supported by connected server.static final intClient serialization error.static final intUnknown server failure.static final intServer has run out of memory.static final intConnection to server failed.static final intClient or server has timed out.static final intMulti-record transaction failedstatic final intA user defined function returned an error code.static final intUnsupported Server Feature (e.g.static final intUser was previously created.static final intWrite can't complete until XDR finishes shipping. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetResultString(int resultCode) Return result code as a string.static booleankeepConnection(int resultCode) Should connection be put back into pool.
-
Field Details
-
TXN_FAILED
public static final int TXN_FAILEDMulti-record transaction 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_BLOCKEDMRT record blocked by a different transaction.- See Also:
-
MRT_VERSION_MISMATCH
public static final int MRT_VERSION_MISMATCHMRT 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_EXPIREDMRT deadline reached without a successful commit or abort.- See Also:
-
MRT_TOO_MANY_WRITES
public static final int MRT_TOO_MANY_WRITESMRT write command limit (4096) exceeded.- See Also:
-
MRT_COMMITTED
public static final int MRT_COMMITTEDMRT was already committed.- See Also:
-
MRT_ABORTED
public static final int MRT_ABORTEDMRT was already aborted.- 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.
-