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 java.lang.ObjectProbe describes a health check to be performed against a VirtualMachineInstance to determine whether it is alive or ready to receive traffic.
-
-
Constructor Summary
Constructors Constructor Description V1Probe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)V1ProbefailureThreshold(java.lang.Integer failureThreshold)java.lang.IntegergetFailureThreshold()Minimum consecutive failures for the probe to be considered failed after having succeeded.V1HTTPGetActiongetHttpGet()HTTPGet specifies the http request to perform.java.lang.IntegergetInitialDelaySeconds()Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated.java.lang.IntegergetPeriodSeconds()How often (in seconds) to perform the probe.java.lang.IntegergetSuccessThreshold()Minimum consecutive successes for the probe to be considered successful after having failed.V1TCPSocketActiongetTcpSocket()TCPSocket specifies an action involving a TCP port.java.lang.IntegergetTimeoutSeconds()Number of seconds after which the probe times out.inthashCode()V1ProbehttpGet(V1HTTPGetAction httpGet)V1ProbeinitialDelaySeconds(java.lang.Integer initialDelaySeconds)V1ProbeperiodSeconds(java.lang.Integer periodSeconds)voidsetFailureThreshold(java.lang.Integer failureThreshold)voidsetHttpGet(V1HTTPGetAction httpGet)voidsetInitialDelaySeconds(java.lang.Integer initialDelaySeconds)voidsetPeriodSeconds(java.lang.Integer periodSeconds)voidsetSuccessThreshold(java.lang.Integer successThreshold)voidsetTcpSocket(V1TCPSocketAction tcpSocket)voidsetTimeoutSeconds(java.lang.Integer timeoutSeconds)V1ProbesuccessThreshold(java.lang.Integer successThreshold)V1ProbetcpSocket(V1TCPSocketAction tcpSocket)V1ProbetimeoutSeconds(java.lang.Integer timeoutSeconds)java.lang.StringtoString()
-
-
-
Method Detail
-
failureThreshold
public V1Probe failureThreshold(java.lang.Integer failureThreshold)
-
getFailureThreshold
public java.lang.Integer 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
public void setFailureThreshold(java.lang.Integer failureThreshold)
-
httpGet
public V1Probe httpGet(V1HTTPGetAction httpGet)
-
getHttpGet
public V1HTTPGetAction getHttpGet()
HTTPGet specifies the http request to perform. +optional- Returns:
- httpGet
-
setHttpGet
public void setHttpGet(V1HTTPGetAction httpGet)
-
initialDelaySeconds
public V1Probe initialDelaySeconds(java.lang.Integer initialDelaySeconds)
-
getInitialDelaySeconds
public java.lang.Integer 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
public void setInitialDelaySeconds(java.lang.Integer initialDelaySeconds)
-
periodSeconds
public V1Probe periodSeconds(java.lang.Integer periodSeconds)
-
getPeriodSeconds
public java.lang.Integer getPeriodSeconds()
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional- Returns:
- periodSeconds
-
setPeriodSeconds
public void setPeriodSeconds(java.lang.Integer periodSeconds)
-
successThreshold
public V1Probe successThreshold(java.lang.Integer successThreshold)
-
getSuccessThreshold
public java.lang.Integer 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
public void setSuccessThreshold(java.lang.Integer successThreshold)
-
tcpSocket
public V1Probe tcpSocket(V1TCPSocketAction tcpSocket)
-
getTcpSocket
public V1TCPSocketAction getTcpSocket()
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional- Returns:
- tcpSocket
-
setTcpSocket
public void setTcpSocket(V1TCPSocketAction tcpSocket)
-
timeoutSeconds
public V1Probe timeoutSeconds(java.lang.Integer timeoutSeconds)
-
getTimeoutSeconds
public java.lang.Integer 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
public void setTimeoutSeconds(java.lang.Integer timeoutSeconds)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-