@Generated(value="OracleSDKGenerator", comments="API Version: 20170115") public final class BackendSetHealth extends Object
The health status details for a backend set.
This object does not explicitly enumerate backend servers with a status of OK. However, they are included in the totalBackendCount sum.
Note: Objects should always be created or deserialized using the BackendSetHealth.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the BackendSetHealth.Builder, which maintain a set of all explicitly set fields called __explicitlySet__. The hashCode() and equals(Object) methods are implemented to take __explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__ (since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
BackendSetHealth.Builder |
static class |
BackendSetHealth.Status
Overall health status of the backend set.
|
| Constructor and Description |
|---|
BackendSetHealth(BackendSetHealth.Status status,
List<String> warningStateBackendNames,
List<String> criticalStateBackendNames,
List<String> unknownStateBackendNames,
Integer totalBackendCount)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static BackendSetHealth.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
List<String> |
getCriticalStateBackendNames()
A list of backend servers that are currently in the
CRITICAL health state. |
BackendSetHealth.Status |
getStatus()
Overall health status of the backend set.
|
Integer |
getTotalBackendCount()
The total number of backend servers in this backend set.
|
List<String> |
getUnknownStateBackendNames()
A list of backend servers that are currently in the
UNKNOWN health state. |
List<String> |
getWarningStateBackendNames()
A list of backend servers that are currently in the
WARNING health state. |
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"status","warningStateBackendNames","criticalStateBackendNames","unknownStateBackendNames","totalBackendCount"}) @Deprecated public BackendSetHealth(BackendSetHealth.Status status, List<String> warningStateBackendNames, List<String> criticalStateBackendNames, List<String> unknownStateBackendNames, Integer totalBackendCount)
public static BackendSetHealth.Builder builder()
Create a new builder.
public BackendSetHealth.Status getStatus()
Overall health status of the backend set.
OK: All backend servers in the backend set return a status of OK.
WARNING: Half or more of the backend set’s backend servers return a status of OK and at least one backend server returns a status of WARNING, CRITICAL, or UNKNOWN.
CRITICAL: Fewer than half of the backend set’s backend servers return a status of OK.
UNKNOWN: More than half of the backend set’s backend servers return a status of UNKNOWN, the system was unable to retrieve metrics, or the backend set does not have a listener attached.
public List<String> getWarningStateBackendNames()
A list of backend servers that are currently in the WARNING health state. The list identifies each backend server by IP address and port.
Example: 10.0.0.3:8080
public List<String> getCriticalStateBackendNames()
A list of backend servers that are currently in the CRITICAL health state. The list identifies each backend server by IP address and port.
Example: 10.0.0.4:8080
public List<String> getUnknownStateBackendNames()
A list of backend servers that are currently in the UNKNOWN health state. The list identifies each backend server by IP address and port.
Example: 10.0.0.5:8080
public Integer getTotalBackendCount()
The total number of backend servers in this backend set.
Example: 7
Copyright © 2016–2019. All rights reserved.