Package org.apache.sling.hc.api
Class Result
java.lang.Object
org.apache.sling.hc.api.Result
- All Implemented Interfaces:
Iterable<ResultLog.Entry>
Deprecated.
The result of executing a
HealthCheck-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResult(Result.Status s, String explanation) Deprecated.Build a single-value ResultResult(Result.Status s, String explanation, Exception e) Deprecated.Build a single-value Result with exceptionDeprecated.Build a a Result based on a ResultLog, which can provide more details than a single-value Result. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Result
Deprecated.Build a single-value Result- Parameters:
s- if lower than OK, our status is set to OK
-
Result
Deprecated.Build a single-value Result with exception- Parameters:
s- if lower than OK, our status is set to OK
-
Result
Deprecated.Build a a Result based on a ResultLog, which can provide more details than a single-value Result.
-
-
Method Details
-
isOk
public boolean isOk()Deprecated.True if our status is OK - provides a convenient way of checking that. -
getStatus
Deprecated.Return our Status -
iterator
Deprecated.Return an Iterator on the entries of our ResultLog- Specified by:
iteratorin interfaceIterable<ResultLog.Entry>
-
toString
Deprecated.
-