Interface DeepHealthChecks.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DeepHealthChecks.Builder,,DeepHealthChecks> SdkBuilder<DeepHealthChecks.Builder,,DeepHealthChecks> SdkPojo
- Enclosing class:
DeepHealthChecks
-
Method Summary
Modifier and TypeMethodDescriptiondefault DeepHealthChecks.BuilderonStart(Consumer<DeepHealthCheckOnStart.Builder> onStart) The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs.onStart(DeepHealthCheckOnStart onStart) The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
onStart
The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs. If the check fails after a reboot, PCS takes the same
repairActionas at launch. For example, withREPLACE, PCS replaces the instance instead of returning it to service. If the compute node group has scripts in thenodeBootstrappedstage ofnodeLifecycleActions, the deep health check runs after those scripts. If a script fails and itsonErrorsetting terminates the compute node, the deep health check doesn't run. This value is required when you specifydeepHealthChecks.- Parameters:
onStart- The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs. If the check fails after a reboot, PCS takes the samerepairActionas at launch. For example, withREPLACE, PCS replaces the instance instead of returning it to service. If the compute node group has scripts in thenodeBootstrappedstage ofnodeLifecycleActions, the deep health check runs after those scripts. If a script fails and itsonErrorsetting terminates the compute node, the deep health check doesn't run. This value is required when you specifydeepHealthChecks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onStart
The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs. If the check fails after a reboot, PCS takes the same
This is a convenience method that creates an instance of therepairActionas at launch. For example, withREPLACE, PCS replaces the instance instead of returning it to service. If the compute node group has scripts in thenodeBootstrappedstage ofnodeLifecycleActions, the deep health check runs after those scripts. If a script fails and itsonErrorsetting terminates the compute node, the deep health check doesn't run. This value is required when you specifydeepHealthChecks.DeepHealthCheckOnStart.Builderavoiding the need to create one manually viaDeepHealthCheckOnStart.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonStart(DeepHealthCheckOnStart).- Parameters:
onStart- a consumer that will call methods onDeepHealthCheckOnStart.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-