Enum Class SchedulingStrategy

java.lang.Object
java.lang.Enum<SchedulingStrategy>
org.apache.nifi.scheduling.SchedulingStrategy
All Implemented Interfaces:
Serializable, Comparable<SchedulingStrategy>, Constable

public enum SchedulingStrategy extends Enum<SchedulingStrategy>
Defines a Scheduling Strategy to use when scheduling Components (Ports, Funnels, Processors) to run
  • Enum Constant Details

    • TIMER_DRIVEN

      public static final SchedulingStrategy TIMER_DRIVEN
      Components should be scheduled to run on a periodic interval that is user-defined with a user-defined number of concurrent tasks. All Components support Timer-Driven mode.
    • CRON_DRIVEN

      public static final SchedulingStrategy CRON_DRIVEN
      Indicates that the component will be scheduled to run according to a Cron-style expression
  • Field Details

    • defaultConcurrentTasks

      private final int defaultConcurrentTasks
    • defaultSchedulingPeriod

      private final String defaultSchedulingPeriod
  • Constructor Details

    • SchedulingStrategy

      private SchedulingStrategy(int defaultConcurrentTasks, String defaultSchedulingPeriod)
  • Method Details

    • values

      public static SchedulingStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SchedulingStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDefaultConcurrentTasks

      public int getDefaultConcurrentTasks()
    • getDefaultSchedulingPeriod

      public String getDefaultSchedulingPeriod()