public interface TriggerFactory
Trigger
Modifier and Type | Method and Description |
---|---|
Trigger |
and(Trigger... triggers)
Creates a trigger which is satisfied when all of the given triggers are satisfied.
|
Trigger |
byTime(String cronExpression)
Creates a trigger which is satisfied based upon the given cron expression.
|
Trigger |
onPartitions(String datasetName,
int numPartitions)
Creates a trigger which is satisfied whenever at least a certain number of new partitions
are added to a certain dataset in the same namespace as the app.
|
Trigger |
onPartitions(String datasetNamespace,
String datasetName,
int numPartitions)
Creates a trigger which is satisfied whenever at least a certain number of new partitions
are added to a certain dataset in the specified namespace.
|
Trigger |
onProgramStatus(ProgramType programType,
String program,
ProgramStatus... programStatuses)
Creates a trigger which is satisfied when the given program in the same namespace, application,
and application version transitions to any one of the given program statuses.
|
Trigger |
onProgramStatus(String application,
ProgramType programType,
String program,
ProgramStatus... programStatuses)
Creates a trigger which is satisfied when the given program in the given application in the same namespace
transitions to any one of the given program statuses.
|
Trigger |
onProgramStatus(String programNamespace,
String application,
ProgramType programType,
String program,
ProgramStatus... programStatuses)
Creates a trigger which is satisfied when the given program in the given namespace
and application with default version transitions to any one of the given program statuses.
|
Trigger |
onProgramStatus(String programNamespace,
String application,
String appVersion,
ProgramType programType,
String program,
ProgramStatus... programStatuses)
Creates a trigger which is satisfied when the given program in the given namespace, application, and
application version transitions to any one of the given program statuses.
|
Trigger |
or(Trigger... triggers)
Creates a trigger which is satisfied when at least one of the internal triggers are satisfied.
|
Trigger or(Trigger... triggers)
triggers
- the triggers to be evaluated as internal triggers of the returned triggerTrigger
Trigger and(Trigger... triggers)
triggers
- the triggers to be evaluated as internal triggers of the returned triggerTrigger
Trigger byTime(String cronExpression)
cronExpression
- the cron expression to specify the time to trigger the scheduleTrigger
Trigger onPartitions(String datasetName, int numPartitions)
datasetName
- the name of the dataset in the same namespace of the appnumPartitions
- the minimum number of new partitions added to the dataset to satisfy the triggerTrigger
Trigger onPartitions(String datasetNamespace, String datasetName, int numPartitions)
datasetNamespace
- the namespace where the dataset is defineddatasetName
- the name of the dataset in the specified namespace of the appnumPartitions
- the minimum number of new partitions added to the dataset to trigger the scheduleTrigger
Trigger onProgramStatus(String programNamespace, String application, String appVersion, ProgramType programType, String program, ProgramStatus... programStatuses)
programNamespace
- the namespace where this program is definedapplication
- the name of the application where this program is definedappVersion
- the version of the applicationprogramType
- the type of the program, as supported by the systemprogram
- the name of the programprogramStatuses
- the set of statuses to trigger the schedule. The schedule will be triggered if the status of
the specific program transitioned to one of these statuses.Trigger
Trigger onProgramStatus(String programNamespace, String application, ProgramType programType, String program, ProgramStatus... programStatuses)
Trigger onProgramStatus(String application, ProgramType programType, String program, ProgramStatus... programStatuses)
Trigger onProgramStatus(ProgramType programType, String program, ProgramStatus... programStatuses)
Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.