Class ContainerProbe


  • public final class ContainerProbe
    extends Object
    The container probe, for liveness or readiness.
    • Constructor Detail

      • ContainerProbe

        public ContainerProbe()
    • Method Detail

      • exec

        public ContainerExec exec()
        Get the exec property: The execution command to probe.
        Returns:
        the exec value.
      • withExec

        public ContainerProbe withExec​(ContainerExec exec)
        Set the exec property: The execution command to probe.
        Parameters:
        exec - the exec value to set.
        Returns:
        the ContainerProbe object itself.
      • httpGet

        public ContainerHttpGet httpGet()
        Get the httpGet property: The Http Get settings to probe.
        Returns:
        the httpGet value.
      • withHttpGet

        public ContainerProbe withHttpGet​(ContainerHttpGet httpGet)
        Set the httpGet property: The Http Get settings to probe.
        Parameters:
        httpGet - the httpGet value to set.
        Returns:
        the ContainerProbe object itself.
      • initialDelaySeconds

        public Integer initialDelaySeconds()
        Get the initialDelaySeconds property: The initial delay seconds.
        Returns:
        the initialDelaySeconds value.
      • withInitialDelaySeconds

        public ContainerProbe withInitialDelaySeconds​(Integer initialDelaySeconds)
        Set the initialDelaySeconds property: The initial delay seconds.
        Parameters:
        initialDelaySeconds - the initialDelaySeconds value to set.
        Returns:
        the ContainerProbe object itself.
      • periodSeconds

        public Integer periodSeconds()
        Get the periodSeconds property: The period seconds.
        Returns:
        the periodSeconds value.
      • withPeriodSeconds

        public ContainerProbe withPeriodSeconds​(Integer periodSeconds)
        Set the periodSeconds property: The period seconds.
        Parameters:
        periodSeconds - the periodSeconds value to set.
        Returns:
        the ContainerProbe object itself.
      • failureThreshold

        public Integer failureThreshold()
        Get the failureThreshold property: The failure threshold.
        Returns:
        the failureThreshold value.
      • withFailureThreshold

        public ContainerProbe withFailureThreshold​(Integer failureThreshold)
        Set the failureThreshold property: The failure threshold.
        Parameters:
        failureThreshold - the failureThreshold value to set.
        Returns:
        the ContainerProbe object itself.
      • successThreshold

        public Integer successThreshold()
        Get the successThreshold property: The success threshold.
        Returns:
        the successThreshold value.
      • withSuccessThreshold

        public ContainerProbe withSuccessThreshold​(Integer successThreshold)
        Set the successThreshold property: The success threshold.
        Parameters:
        successThreshold - the successThreshold value to set.
        Returns:
        the ContainerProbe object itself.
      • timeoutSeconds

        public Integer timeoutSeconds()
        Get the timeoutSeconds property: The timeout seconds.
        Returns:
        the timeoutSeconds value.
      • withTimeoutSeconds

        public ContainerProbe withTimeoutSeconds​(Integer timeoutSeconds)
        Set the timeoutSeconds property: The timeout seconds.
        Parameters:
        timeoutSeconds - the timeoutSeconds value to set.
        Returns:
        the ContainerProbe object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.