public interface ClientResponse
Modifier and Type | Field and Description |
---|---|
static byte |
CONNECTION_LOST
Status code indicating the connection to the database that the invocation was queued at
was lost before a response was received.
|
static byte |
CONNECTION_TIMEOUT
Status code indicating that the request didn't receive a response before the per-client timeout.
|
static byte |
GRACEFUL_FAILURE
Status code indicating the stored procedure failed and was rolled back.
|
static byte |
OPERATIONAL_FAILURE
Status code indicating that the transaction completed and did not roll back, but some part
of the operation didn't succeed.
|
static byte |
RESPONSE_UNKNOWN
Status code indicating that the response was lost, and the outcome of the invocation is unknown.
|
static byte |
SERVER_UNAVAILABLE
Status code indicating that the server is currently unavailable for stored procedure invocations.
|
static byte |
SUCCESS
Status code indicating the store procedure executed successfully
|
static byte |
TXN_MISPARTITIONED
Status code indicating that the transaction was sent to the wrong partition.
|
static byte |
TXN_MISROUTED
Status code indicating that the transaction is mis-routed.
|
static byte |
TXN_RESTART
Status code indicating that the transaction is being restarted.
|
static byte |
UNEXPECTED_FAILURE
Status code indicating the stored procedure failed (or may never have been successfully invoked)
and that there may have been negative side effects on the server
|
static byte |
UNINITIALIZED_APP_STATUS_CODE
Default value for the user specified app status code field
|
static byte |
USER_ABORT
Status code indicating the stored procedure executed successfully and was voluntarily aborted and rolled
back by the stored procedure code
|
Modifier and Type | Method and Description |
---|---|
byte |
getAppStatus()
Retrieve the status code returned by the stored procedure.
|
java.lang.String |
getAppStatusString()
Get a
String representation of any additional information the stored procedure may have included in
the response. |
int |
getClientRoundtrip()
Get the amount of time it took to run the transaction through the Client API, database, and back to the
callback.
|
long |
getClientRoundtripNanos()
Get the amount of time it took to run the transaction through the Client API, database, and back to the
callback.
|
int |
getClusterRoundtrip()
Get an estimate of the amount of time it took for the database
to process the transaction from the time it was received at the initiating node to the time
the initiating node got the response and queued it for transmission to the client.
|
VoltTable[] |
getResults()
Get the array of
VoltTable results returned by the stored procedure. |
byte |
getStatus()
Retrieve the status code returned by the server
|
java.lang.String |
getStatusString()
Get a
String representation of any additional information the server may have included in
the response. |
static final byte SUCCESS
static final byte USER_ABORT
static final byte GRACEFUL_FAILURE
static final byte UNEXPECTED_FAILURE
static final byte CONNECTION_LOST
static final byte SERVER_UNAVAILABLE
static final byte CONNECTION_TIMEOUT
static final byte RESPONSE_UNKNOWN
static final byte TXN_RESTART
static final byte OPERATIONAL_FAILURE
static final byte TXN_MISPARTITIONED
static final byte TXN_MISROUTED
static final byte UNINITIALIZED_APP_STATUS_CODE
byte getStatus()
byte getAppStatus()
VoltTable[] getResults()
VoltTable
results returned by the stored procedure.null
, but may be length 0.java.lang.String getStatusString()
String
representation of any additional information the server may have included in
the response. This may be an stack trace, error message, etc.null
if there is none.java.lang.String getAppStatusString()
String
representation of any additional information the stored procedure may have included in
the response. This may be an stack trace, error message, etc. This is generated by the application
and not VoltDB. The default value is null.null
if there is none.int getClusterRoundtrip()
int getClientRoundtrip()
long getClientRoundtripNanos()