Package com.yahoo.vespa.http.client
Class Result.Detail
- java.lang.Object
-
- com.yahoo.vespa.http.client.Result.Detail
-
- Enclosing class:
- Result
public static final class Result.Detail extends java.lang.Object
Information in a Result for a single operation sent to a single endpoint.
-
-
Constructor Summary
Constructors Constructor Description Detail(Endpoint endpoint)
Detail(Endpoint endpoint, Result.ResultType resultType, java.lang.String traceMessage, java.lang.Exception e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
getEndpoint()
Returns the endpoint from which the result was received, or null if this failed before being assigned an endpointjava.lang.Exception
getException()
Returns any exception related to this Detail, if unsuccessful.Result.ResultType
getResultType()
Returns the result of the operationjava.lang.String
getTraceMessage()
Returns any trace message produces, or null if noneboolean
isSuccess()
Returns whether the operation was successfuljava.lang.String
toString()
-
-
-
Constructor Detail
-
Detail
public Detail(Endpoint endpoint, Result.ResultType resultType, java.lang.String traceMessage, java.lang.Exception e)
-
Detail
public Detail(Endpoint endpoint)
-
-
Method Detail
-
getEndpoint
public Endpoint getEndpoint()
Returns the endpoint from which the result was received, or null if this failed before being assigned an endpoint
-
isSuccess
public boolean isSuccess()
Returns whether the operation was successful
-
getResultType
public Result.ResultType getResultType()
Returns the result of the operation
-
getException
public java.lang.Exception getException()
Returns any exception related to this Detail, if unsuccessful. Might be null.
-
getTraceMessage
public java.lang.String getTraceMessage()
Returns any trace message produces, or null if none
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-