Package kubevirt.io

Class 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.
    • Constructor Detail

      • V1Probe

        public V1Probe()
    • 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)
      • getHttpGet

        public V1HTTPGetAction getHttpGet()
        HTTPGet specifies the http request to perform. +optional
        Returns:
        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)
      • getTcpSocket

        public V1TCPSocketAction getTcpSocket()
        TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional
        Returns:
        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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object