@InterfaceAudience.Private public class OperationStatus extends Object
Modifier and Type | Field and Description |
---|---|
private HConstants.OperationStatusCode |
code |
private String |
exceptionMsg |
(package private) static OperationStatus |
FAILURE
Singleton for failed operations.
|
(package private) static OperationStatus |
NOT_RUN
Singleton for operations not yet run.
|
(package private) static OperationStatus |
SUCCESS
Singleton for successful operations.
|
Constructor and Description |
---|
OperationStatus(HConstants.OperationStatusCode code) |
OperationStatus(HConstants.OperationStatusCode code,
Exception e) |
OperationStatus(HConstants.OperationStatusCode code,
String exceptionMsg) |
Modifier and Type | Method and Description |
---|---|
String |
getExceptionMsg() |
HConstants.OperationStatusCode |
getOperationStatusCode() |
static final OperationStatus SUCCESS
static final OperationStatus FAILURE
static final OperationStatus NOT_RUN
private final HConstants.OperationStatusCode code
private final String exceptionMsg
public OperationStatus(HConstants.OperationStatusCode code)
public OperationStatus(HConstants.OperationStatusCode code, String exceptionMsg)
public OperationStatus(HConstants.OperationStatusCode code, Exception e)
public HConstants.OperationStatusCode getOperationStatusCode()
public String getExceptionMsg()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.