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.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
Fields Modifier and Type Field Description private java.lang.Integer
failureThreshold
private V1HTTPGetAction
httpGet
private java.lang.Integer
initialDelaySeconds
private java.lang.Integer
periodSeconds
private java.lang.Integer
successThreshold
private V1TCPSocketAction
tcpSocket
private java.lang.Integer
timeoutSeconds
-
Constructor Summary
Constructors Constructor Description V1Probe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
V1Probe
failureThreshold(java.lang.Integer failureThreshold)
java.lang.Integer
getFailureThreshold()
Minimum consecutive failures for the probe to be considered failed after having succeeded.V1HTTPGetAction
getHttpGet()
HTTPGet specifies the http request to perform.java.lang.Integer
getInitialDelaySeconds()
Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated.java.lang.Integer
getPeriodSeconds()
How often (in seconds) to perform the probe.java.lang.Integer
getSuccessThreshold()
Minimum consecutive successes for the probe to be considered successful after having failed.V1TCPSocketAction
getTcpSocket()
TCPSocket specifies an action involving a TCP port.java.lang.Integer
getTimeoutSeconds()
Number of seconds after which the probe times out.int
hashCode()
V1Probe
httpGet(V1HTTPGetAction httpGet)
V1Probe
initialDelaySeconds(java.lang.Integer initialDelaySeconds)
V1Probe
periodSeconds(java.lang.Integer periodSeconds)
void
setFailureThreshold(java.lang.Integer failureThreshold)
void
setHttpGet(V1HTTPGetAction httpGet)
void
setInitialDelaySeconds(java.lang.Integer initialDelaySeconds)
void
setPeriodSeconds(java.lang.Integer periodSeconds)
void
setSuccessThreshold(java.lang.Integer successThreshold)
void
setTcpSocket(V1TCPSocketAction tcpSocket)
void
setTimeoutSeconds(java.lang.Integer timeoutSeconds)
V1Probe
successThreshold(java.lang.Integer successThreshold)
V1Probe
tcpSocket(V1TCPSocketAction tcpSocket)
V1Probe
timeoutSeconds(java.lang.Integer timeoutSeconds)
private java.lang.String
toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.String
toString()
-
-
-
Field Detail
-
failureThreshold
private java.lang.Integer failureThreshold
-
httpGet
private V1HTTPGetAction httpGet
-
initialDelaySeconds
private java.lang.Integer initialDelaySeconds
-
periodSeconds
private java.lang.Integer periodSeconds
-
successThreshold
private java.lang.Integer successThreshold
-
tcpSocket
private V1TCPSocketAction tcpSocket
-
timeoutSeconds
private java.lang.Integer timeoutSeconds
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toIndentedString
private java.lang.String toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-