Class Probe.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.k8s.Probe.Jsii$Proxy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.k8s.Probe
Probe.Builder, Probe.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(Probe.Builder builder)
Constructor that initializes the object based on literal property values passed by theProbe.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
ExecAction
getExec()
Exec specifies the action to take.Number
getFailureThreshold()
Minimum consecutive failures for the probe to be considered failed after having succeeded.GrpcAction
getGrpc()
GRPC specifies an action involving a GRPC port.HttpGetAction
getHttpGet()
HTTPGet specifies the http request to perform.Number
getInitialDelaySeconds()
Number of seconds after the container has started before liveness probes are initiated.Number
getPeriodSeconds()
How often (in seconds) to perform the probe.Number
getSuccessThreshold()
Minimum consecutive successes for the probe to be considered successful after having failed.TcpSocketAction
getTcpSocket()
TCPSocket specifies an action involving a TCP port.Number
getTerminationGracePeriodSeconds()
Optional duration in seconds the pod needs to terminate gracefully upon probe failure.Number
getTimeoutSeconds()
Number of seconds after which the probe times out.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(Probe.Builder builder)
Constructor that initializes the object based on literal property values passed by theProbe.Builder
.
-
-
Method Detail
-
getExec
public final ExecAction getExec()
Description copied from interface:Probe
Exec specifies the action to take.
-
getFailureThreshold
public final Number getFailureThreshold()
Description copied from interface:Probe
Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.
Default: 3. Minimum value is 1.
- Specified by:
getFailureThreshold
in interfaceProbe
-
getGrpc
public final GrpcAction getGrpc()
Description copied from interface:Probe
GRPC specifies an action involving a GRPC port.This is a beta field and requires enabling GRPCContainerProbe feature gate.
-
getHttpGet
public final HttpGetAction getHttpGet()
Description copied from interface:Probe
HTTPGet specifies the http request to perform.- Specified by:
getHttpGet
in interfaceProbe
-
getInitialDelaySeconds
public final Number getInitialDelaySeconds()
Description copied from interface:Probe
Number of seconds after the container has started before liveness probes are initiated.More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Specified by:
getInitialDelaySeconds
in interfaceProbe
-
getPeriodSeconds
public final Number getPeriodSeconds()
Description copied from interface:Probe
How often (in seconds) to perform the probe.Default to 10 seconds. Minimum value is 1.
Default: 10 seconds. Minimum value is 1.
- Specified by:
getPeriodSeconds
in interfaceProbe
-
getSuccessThreshold
public final Number getSuccessThreshold()
Description copied from interface:Probe
Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
Default: 1. Must be 1 for liveness and startup. Minimum value is 1.
- Specified by:
getSuccessThreshold
in interfaceProbe
-
getTcpSocket
public final TcpSocketAction getTcpSocket()
Description copied from interface:Probe
TCPSocket specifies an action involving a TCP port.- Specified by:
getTcpSocket
in interfaceProbe
-
getTerminationGracePeriodSeconds
public final Number getTerminationGracePeriodSeconds()
Description copied from interface:Probe
Optional duration in seconds the pod needs to terminate gracefully upon probe failure.The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
- Specified by:
getTerminationGracePeriodSeconds
in interfaceProbe
-
getTimeoutSeconds
public final Number getTimeoutSeconds()
Description copied from interface:Probe
Number of seconds after which the probe times out.Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Default: 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Specified by:
getTimeoutSeconds
in interfaceProbe
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-