Class HealthCheckerDetails
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.networkloadbalancer.model.HealthCheckerDetails
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200501") public final class HealthCheckerDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe health check policy configuration.For more information, see Editing Network Load Balancer Health Check Policies. 
 Note: Objects should always be created or deserialized using theHealthCheckerDetails.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 theHealthCheckerDetails.Builder, which maintain a set of all explicitly set fields calledHealthCheckerDetails.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 SummaryNested Classes Modifier and Type Class Description static classHealthCheckerDetails.Builder
 - 
Constructor SummaryConstructors Constructor Description HealthCheckerDetails(HealthCheckProtocols protocol, Integer port, Integer retries, Integer timeoutInMillis, Integer intervalInMillis, String urlPath, String responseBodyRegex, Integer returnCode, byte[] requestData, byte[] responseData, DnsHealthCheckerDetails dns)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthCheckerDetails.Builderbuilder()Create a new builder.booleanequals(Object o)DnsHealthCheckerDetailsgetDns()IntegergetIntervalInMillis()The interval between health checks, in milliseconds.IntegergetPort()The backend server port against which to run the health check.HealthCheckProtocolsgetProtocol()The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP.byte[]getRequestData()Base64 encoded pattern to be sent as UDP or TCP health check probe.StringgetResponseBodyRegex()A regular expression for parsing the response body from the backend server.byte[]getResponseData()Base64 encoded pattern to be validated as UDP or TCP health check probe response.IntegergetRetries()The number of retries to attempt before a backend server is considered “unhealthy”.IntegergetReturnCode()The status code a healthy backend server should return.IntegergetTimeoutInMillis()The maximum time, in milliseconds, to wait for a reply to a health check.StringgetUrlPath()The path against which to run the health check.inthashCode()HealthCheckerDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
HealthCheckerDetails@Deprecated @ConstructorProperties({"protocol","port","retries","timeoutInMillis","intervalInMillis","urlPath","responseBodyRegex","returnCode","requestData","responseData","dns"}) public HealthCheckerDetails(HealthCheckProtocols protocol, Integer port, Integer retries, Integer timeoutInMillis, Integer intervalInMillis, String urlPath, String responseBodyRegex, Integer returnCode, byte[] requestData, byte[] responseData, DnsHealthCheckerDetails dns) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static HealthCheckerDetails.Builder builder() Create a new builder.
 - 
toBuilderpublic HealthCheckerDetails.Builder toBuilder() 
 - 
getProtocolpublic HealthCheckProtocols getProtocol() The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP.Example: HTTP - Returns:
- the value
 
 - 
getPortpublic Integer getPort() The backend server port against which to run the health check.If the port is not specified, then the network load balancer uses the port information from the Backend object. The port must be specified if the backend port is 0. Example: 8080 - Returns:
- the value
 
 - 
getRetriespublic Integer getRetries() The number of retries to attempt before a backend server is considered “unhealthy”.This number also applies when recovering a server to the “healthy” state. The default value is 3. Example: 3 - Returns:
- the value
 
 - 
getTimeoutInMillispublic Integer getTimeoutInMillis() The maximum time, in milliseconds, to wait for a reply to a health check.A health check is successful only if a reply returns within this timeout period. The default value is 3000 (3 seconds). Example: 3000 - Returns:
- the value
 
 - 
getIntervalInMillispublic Integer getIntervalInMillis() The interval between health checks, in milliseconds.The default value is 10000 (10 seconds). Example: 10000 - Returns:
- the value
 
 - 
getUrlPathpublic String getUrlPath() The path against which to run the health check.Example: /healthcheck - Returns:
- the value
 
 - 
getResponseBodyRegexpublic String getResponseBodyRegex() A regular expression for parsing the response body from the backend server.Example: ^((?!false).|\\s)*$ - Returns:
- the value
 
 - 
getReturnCodepublic Integer getReturnCode() The status code a healthy backend server should return.If you configure the health check policy to use the HTTP protocol, then you can use common HTTP status codes such as “200”. Example: 200 - Returns:
- the value
 
 - 
getRequestDatapublic byte[] getRequestData() Base64 encoded pattern to be sent as UDP or TCP health check probe.- Returns:
- the value
 
 - 
getResponseDatapublic byte[] getResponseData() Base64 encoded pattern to be validated as UDP or TCP health check probe response.- Returns:
- the value
 
 - 
getDnspublic DnsHealthCheckerDetails getDns() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-