Package org.apache.sling.hc.api
Class Result
- java.lang.Object
 - 
- org.apache.sling.hc.api.Result
 
 
- 
- All Implemented Interfaces:
 java.lang.Iterable<ResultLog.Entry>
@Deprecated public class Result extends java.lang.Object implements java.lang.Iterable<ResultLog.Entry>
Deprecated.The result of executing aHealthCheck 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResult.StatusDeprecated. 
- 
Constructor Summary
Constructors Constructor Description Result(Result.Status s, java.lang.String explanation)Deprecated.Build a single-value ResultResult(Result.Status s, java.lang.String explanation, java.lang.Exception e)Deprecated.Build a single-value Result with exceptionResult(ResultLog log)Deprecated.Build a a Result based on a ResultLog, which can provide more details than a single-value Result. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Result.StatusgetStatus()Deprecated.Return our StatusbooleanisOk()Deprecated.True if our status is OK - provides a convenient way of checking that.java.util.Iterator<ResultLog.Entry>iterator()Deprecated.Return an Iterator on the entries of our ResultLogjava.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Constructor Detail
- 
Result
public Result(Result.Status s, java.lang.String explanation)
Deprecated.Build a single-value Result- Parameters:
 s- if lower than OK, our status is set to OK
 
- 
Result
public Result(Result.Status s, java.lang.String explanation, java.lang.Exception e)
Deprecated.Build a single-value Result with exception- Parameters:
 s- if lower than OK, our status is set to OK
 
- 
Result
public Result(ResultLog log)
Deprecated.Build a a Result based on a ResultLog, which can provide more details than a single-value Result. 
 - 
 
- 
Method Detail
- 
isOk
public boolean isOk()
Deprecated.True if our status is OK - provides a convenient way of checking that. 
- 
getStatus
public Result.Status getStatus()
Deprecated.Return our Status 
- 
iterator
public java.util.Iterator<ResultLog.Entry> iterator()
Deprecated.Return an Iterator on the entries of our ResultLog- Specified by:
 iteratorin interfacejava.lang.Iterable<ResultLog.Entry>
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -