public class Result extends java.lang.Object implements java.lang.Iterable<ResultLog.Entry>
HealthCheck
Modifier and Type | Class and Description |
---|---|
static class |
Result.Status |
Constructor and Description |
---|
Result(Result.Status s,
java.lang.String explanation)
Build a single-value Result
|
Result(Result.Status s,
java.lang.String explanation,
java.lang.Exception e)
Build a single-value Result with exception
|
Result(ResultLog log)
Build a a Result based on a ResultLog, which can provide
more details than a single-value Result.
|
Modifier and Type | Method and Description |
---|---|
Result.Status |
getStatus()
Return our Status
|
boolean |
isOk()
True if our status is OK - provides a convenient way of
checking that.
|
java.util.Iterator<ResultLog.Entry> |
iterator()
Return an Iterator on the entries of our ResultLog
|
java.lang.String |
toString() |
public Result(Result.Status s, java.lang.String explanation)
s
- if lower than OK, our status is set to OKpublic Result(Result.Status s, java.lang.String explanation, java.lang.Exception e)
s
- if lower than OK, our status is set to OKpublic Result(ResultLog log)
public boolean isOk()
public Result.Status getStatus()
public java.util.Iterator<ResultLog.Entry> iterator()
iterator
in interface java.lang.Iterable<ResultLog.Entry>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved