Class OperationStatus
java.lang.Object
org.apache.hadoop.hbase.regionserver.OperationStatus
This class stores the Operation status code and the exception message that occurs in case of
failure of operations like put, delete, etc. This class is added with a purpose of adding more
details or info regarding the operation status in future.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final HConstants.OperationStatusCode
private final String
static final OperationStatus
Singleton for failed operations.static final OperationStatus
Singleton for operations not yet run.private final Result
static final OperationStatus
Singleton for successful operations. -
Constructor Summary
ModifierConstructorDescriptionOperationStatus
(HConstants.OperationStatusCode code, String exceptionMsg) OperationStatus
(HConstants.OperationStatusCode code, Result result) private
OperationStatus
(HConstants.OperationStatusCode code, Result result, String exceptionMsg) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
SUCCESS
Singleton for successful operations. -
FAILURE
Singleton for failed operations. -
NOT_RUN
Singleton for operations not yet run. -
code
-
result
-
exceptionMsg
-
-
Constructor Details
-
OperationStatus
-
OperationStatus
-
OperationStatus
-
OperationStatus
-
OperationStatus
-
-
Method Details
-
getOperationStatusCode
-
getResult
-
getExceptionMsg
-