Class HttpHealthCheckCreationOptions.Builder
java.lang.Object
org.jclouds.googlecomputeengine.options.HttpHealthCheckCreationOptions.Builder
- Enclosing class:
HttpHealthCheckCreationOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUseful when performing a PATCH operation and you do not want to overwrite unspecified values with the default values.Fields left as null will be replaced with their default before the request is made.checkIntervalSec
(Integer checkIntervalSec) How often (in seconds) to send a health check.description
(String description) An optional textual description of the TargetPool.healthyThreshold
(Integer healthyThreshold) An unhealthy VM will be marked healthy after this many consecutive successes.The value of the host header in the HTTP health check request.The TCP port number for the HTTP health check request.requestPath
(String requestPath) The request path of the HTTP health check request.timeoutSec
(Integer timeoutSec) How long (in seconds) to wait before claiming failure.unhealthyThreshold
(Integer unhealthyThreshold) A so-far healthy VM will be marked unhealthy after this many consecutive failures.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
host
The value of the host header in the HTTP health check request. -
requestPath
The request path of the HTTP health check request. The default value is "/". -
port
The TCP port number for the HTTP health check request. The default value is 80. -
checkIntervalSec
How often (in seconds) to send a health check. The default value is 5 seconds. -
timeoutSec
How long (in seconds) to wait before claiming failure. The default value is 5 seconds. -
unhealthyThreshold
A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2. -
healthyThreshold
An unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2. -
description
An optional textual description of the TargetPool. -
buildWithDefaults
Fields left as null will be replaced with their default before the request is made.- Parameters:
requestPath
- Defaults to "/" when null.port
- Defaults to 80 when null.checkIntervalSec
- Defaults to 5 when null.timeoutSec
- Defaults to 5 when null.unhealthyThreshold
- Defaults to 2 when null.healthyThreshold
- Defaults to 2 when null.
-
buildForPatch
Useful when performing a PATCH operation and you do not want to overwrite unspecified values with the default values.
-