Package com.yahoo.vespa.http.client.core
Class OperationStatus
java.lang.Object
com.yahoo.vespa.http.client.core.OperationStatus
Serialization/deserialization class for the result of a single document operation against Vespa.
- Author:
- Steinar Knutsen
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOperationStatus
(String message, String operationId, ErrorCode errorCode, boolean isConditionNotMet, String traceMessage) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationStatus
Parse a single rendered OperationStatus string.render()
Returns a string representing the status.
-
Field Details
-
IS_CONDITION_NOT_MET
- See Also:
-
message
-
operationId
-
errorCode
-
traceMessage
-
isConditionNotMet
public final boolean isConditionNotMet
-
-
Constructor Details
-
OperationStatus
public OperationStatus(String message, String operationId, ErrorCode errorCode, boolean isConditionNotMet, String traceMessage) Constructor- Parameters:
message
- some human readable information what happenedoperationId
- the doc ID for the operationerrorCode
- if it is success, transitive, or fatalisConditionNotMet
- if error is due to condition not mettraceMessage
- any tracemessage
-
-
Method Details
-
parse
Parse a single rendered OperationStatus string. White space may be padded after and before the given status.- Parameters:
singleLine
- a rendered OperationStatus- Returns:
- an OperationStatus instance reflecting the input
- Throws:
IllegalArgumentException
- if there are illegal input data characters or the status element has no corresponding value in the ErrorCode enumeration
-
render
Returns a string representing the status.
-