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