Package org.apache.nifi.scheduling
Enum Class SchedulingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<SchedulingStrategy>
,Constable
Defines a Scheduling Strategy to use when scheduling Components (Ports,
Funnels, Processors) to run
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the component will be scheduled to run according to a Cron-style expressionComponents should be scheduled to run on a periodic interval that is user-defined with a user-defined number of concurrent tasks. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SchedulingStrategy
(int defaultConcurrentTasks, String defaultSchedulingPeriod) -
Method Summary
Modifier and TypeMethodDescriptionint
static SchedulingStrategy
Returns the enum constant of this class with the specified name.static SchedulingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Indicates that the component will be scheduled to run according to a Cron-style expression
-
-
Field Details
-
defaultConcurrentTasks
private final int defaultConcurrentTasks -
defaultSchedulingPeriod
-
-
Constructor Details
-
SchedulingStrategy
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getDefaultConcurrentTasks
public int getDefaultConcurrentTasks() -
getDefaultSchedulingPeriod
-