Package com.yahoo.vespa.http.client
Class Result.Detail
- java.lang.Object
-
- com.yahoo.vespa.http.client.Result.Detail
-
- Enclosing class:
- Result
@Immutable 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.java.lang.Exception
getException()
Returns any exception related to this Detail, if unsuccessful.Result.ResultType
getResultType()
Returns the result of the operation.java.lang.String
getTraceMessage()
Returns trace message if any from gateway.boolean
isSuccess()
Check if operation was successful.java.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.- Returns:
- the endpoint from which the result was received.
-
isSuccess
public boolean isSuccess()
Check if operation was successful.- Returns:
- true if 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.- Returns:
- any exception related to this Detail, if unsuccessful. Might be null.
-
getTraceMessage
public java.lang.String getTraceMessage()
Returns trace message if any from gateway.- Returns:
- null or trace message.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-