Class IoK8sApiBatchV1beta1CronJobSpec


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]")
    public class IoK8sApiBatchV1beta1CronJobSpec
    extends Object
    CronJobSpec describes how the job execution will look like and when it will actually run.
    • Constructor Detail

      • IoK8sApiBatchV1beta1CronJobSpec

        public IoK8sApiBatchV1beta1CronJobSpec()
    • Method Detail

      • getConcurrencyPolicy

        @Nullable
        public String getConcurrencyPolicy()
        Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one
        Returns:
        concurrencyPolicy
      • setConcurrencyPolicy

        public void setConcurrencyPolicy​(String concurrencyPolicy)
      • getFailedJobsHistoryLimit

        @Nullable
        public Integer getFailedJobsHistoryLimit()
        The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
        Returns:
        failedJobsHistoryLimit
      • setFailedJobsHistoryLimit

        public void setFailedJobsHistoryLimit​(Integer failedJobsHistoryLimit)
      • getSchedule

        public String getSchedule()
        The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        Returns:
        schedule
      • setSchedule

        public void setSchedule​(String schedule)
      • getStartingDeadlineSeconds

        @Nullable
        public Long getStartingDeadlineSeconds()
        Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
        Returns:
        startingDeadlineSeconds
      • setStartingDeadlineSeconds

        public void setStartingDeadlineSeconds​(Long startingDeadlineSeconds)
      • getSuccessfulJobsHistoryLimit

        @Nullable
        public Integer getSuccessfulJobsHistoryLimit()
        The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.
        Returns:
        successfulJobsHistoryLimit
      • setSuccessfulJobsHistoryLimit

        public void setSuccessfulJobsHistoryLimit​(Integer successfulJobsHistoryLimit)
      • getSuspend

        @Nullable
        public Boolean getSuspend()
        This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.
        Returns:
        suspend
      • setSuspend

        public void setSuspend​(Boolean suspend)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object