Class BackendSetHealth
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.loadbalancer.model.BackendSetHealth
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20170115") public final class BackendSetHealth extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
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 theBackendSetHealth.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 theBackendSetHealth.Builder
, which maintain a set of all explicitly set fields calledBackendSetHealth.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackendSetHealth.Builder
static class
BackendSetHealth.Status
Overall health status of the backend set.
-
Constructor Summary
Constructors Constructor Description BackendSetHealth(BackendSetHealth.Status status, List<String> warningStateBackendNames, List<String> criticalStateBackendNames, List<String> unknownStateBackendNames, Integer totalBackendCount)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackendSetHealth.Builder
builder()
Create a new builder.boolean
equals(Object o)
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()
BackendSetHealth.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
BackendSetHealth
@Deprecated @ConstructorProperties({"status","warningStateBackendNames","criticalStateBackendNames","unknownStateBackendNames","totalBackendCount"}) public BackendSetHealth(BackendSetHealth.Status status, List<String> warningStateBackendNames, List<String> criticalStateBackendNames, List<String> unknownStateBackendNames, Integer totalBackendCount)
Deprecated.
-
-
Method Detail
-
builder
public static BackendSetHealth.Builder builder()
Create a new builder.
-
toBuilder
public BackendSetHealth.Builder toBuilder()
-
getStatus
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.
- Returns:
- the value
-
getWarningStateBackendNames
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
- Returns:
- the value
-
getCriticalStateBackendNames
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
- Returns:
- the value
-
getUnknownStateBackendNames
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
- Returns:
- the value
-
getTotalBackendCount
public Integer getTotalBackendCount()
The total number of backend servers in this backend set.Example: 7
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-