@Deprecated public class Result extends java.lang.Object implements java.lang.Iterable<ResultLog.Entry>
HealthCheck
Modifier and Type | Class and Description |
---|---|
static class |
Result.Status
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected ResultLog |
resultLog
Deprecated.
|
Constructor and Description |
---|
Result(Result.Status s,
java.lang.String explanation)
Deprecated.
Build a single-value Result
|
Result(Result.Status s,
java.lang.String explanation,
java.lang.Exception e)
Deprecated.
Build a single-value Result with exception
|
Result(ResultLog log)
Deprecated.
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()
Deprecated.
Return our Status
|
boolean |
isOk()
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 ResultLog
|
java.lang.String |
toString()
Deprecated.
|
protected final ResultLog resultLog
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 © 2022 The Apache Software Foundation. All rights reserved.