public final class HealthStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
static HealthStatus |
DOWN
Convenient constant value representing down state.
|
static HealthStatus |
OUT_OF_SERVICE
Convenient constant value representing out-of-service state.
|
static HealthStatus |
UNKNOWN
Convenient constant value representing unknown state.
|
static HealthStatus |
UP
Convenient constant value representing up state.
|
| Constructor and Description |
|---|
HealthStatus(HealthStatusCode code)
Create a new instance of
HealthStatus. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
HealthStatusCode |
getCode()
Get the status code.
|
int |
hashCode() |
String |
toString() |
public static final HealthStatus UNKNOWN
public static final HealthStatus UP
public static final HealthStatus DOWN
public static final HealthStatus OUT_OF_SERVICE
public HealthStatus(HealthStatusCode code)
HealthStatus.code - The status code of the serverpublic HealthStatusCode getCode()
Copyright © 2016. All rights reserved.