Package kubevirt.io
Class V1Probe
java.lang.Object
kubevirt.io.V1Probe
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1Probe
extends Object
Probe describes a health check to be performed against a VirtualMachineInstance to determine whether it is alive or ready to receive traffic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integerprivate V1HTTPGetActionprivate Integerprivate Integerprivate Integerprivate V1TCPSocketActionprivate Integer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfailureThreshold(Integer failureThreshold) Minimum consecutive failures for the probe to be considered failed after having succeeded.HTTPGet specifies the http request to perform.Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated.How often (in seconds) to perform the probe.Minimum consecutive successes for the probe to be considered successful after having failed.TCPSocket specifies an action involving a TCP port.Number of seconds after which the probe times out.inthashCode()httpGet(V1HTTPGetAction httpGet) initialDelaySeconds(Integer initialDelaySeconds) periodSeconds(Integer periodSeconds) voidsetFailureThreshold(Integer failureThreshold) voidsetHttpGet(V1HTTPGetAction httpGet) voidsetInitialDelaySeconds(Integer initialDelaySeconds) voidsetPeriodSeconds(Integer periodSeconds) voidsetSuccessThreshold(Integer successThreshold) voidsetTcpSocket(V1TCPSocketAction tcpSocket) voidsetTimeoutSeconds(Integer timeoutSeconds) successThreshold(Integer successThreshold) tcpSocket(V1TCPSocketAction tcpSocket) timeoutSeconds(Integer timeoutSeconds) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
failureThreshold
-
httpGet
-
initialDelaySeconds
-
periodSeconds
-
successThreshold
-
tcpSocket
-
timeoutSeconds
-
-
Constructor Details
-
V1Probe
public V1Probe()
-
-
Method Details
-
failureThreshold
-
getFailureThreshold
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional- Returns:
- failureThreshold
-
setFailureThreshold
-
httpGet
-
getHttpGet
HTTPGet specifies the http request to perform. +optional- Returns:
- httpGet
-
setHttpGet
-
initialDelaySeconds
-
getInitialDelaySeconds
Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional- Returns:
- initialDelaySeconds
-
setInitialDelaySeconds
-
periodSeconds
-
getPeriodSeconds
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional- Returns:
- periodSeconds
-
setPeriodSeconds
-
successThreshold
-
getSuccessThreshold
Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional- Returns:
- successThreshold
-
setSuccessThreshold
-
tcpSocket
-
getTcpSocket
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional- Returns:
- tcpSocket
-
setTcpSocket
-
timeoutSeconds
-
getTimeoutSeconds
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 +optional- Returns:
- timeoutSeconds
-
setTimeoutSeconds
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-