Interface WorkflowAcquisitionStrategy
- All Known Implementing Classes:
AbstractWorkflowStrategy, RoundRobinWorkflowStrategy, SequentialWorkflowStrategy
public interface WorkflowAcquisitionStrategy
Defines specifications for different ways to fetch workload
from a collection of steps
-
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure defaultWorkflowStrategyModebooleanEvaluate iteration counterevaluateWorkload(List<WorkItem> workload) Evaluate retrieved workloadFetches workload from step in provided collectionReturns active policybooleanGet whether strategy has rungetId()Get IdintGet iteration limitFetch target names from workload queueProvidesWorkflowStrategyModeof strategyGet target names as a listbooleanhasNext()Checks whether there are any available tasks left in the active step, or throws TaskTideEngineUncheckedException if not yet configuredvoidReset policy queuevoidsetHasRun(boolean val) Set whether strategy has runvoidsetIterationLimit(int limit) Set an iteration on algorithmvoidSetsWorkflowStrategyModecurrently SCANNER, or EXAHUST of strategy
-
Method Details
-
evaluateWorkload
-
fetchWorkload
Fetches workload from step in provided collection- Returns:
- List-
TaskTideWorkloadAcquisitionPolicy
-
hasNext
boolean hasNext()Checks whether there are any available tasks left in the active step, or throws TaskTideEngineUncheckedException if not yet configured- Returns:
- boolean
-
setStrategyMode
SetsWorkflowStrategyModecurrently SCANNER, or EXAHUST of strategy- Parameters:
mode-
-
getStrategyMode
WorkflowStrategyMode getStrategyMode()ProvidesWorkflowStrategyModeof strategy- Returns:
WorkflowStrategyMode
-
getActive
TaskTideWorkloadAcquisitionPolicy getActive()Returns active policy- Returns:
TaskTideWorkloadAcquisitionPolicy
-
setIterationLimit
void setIterationLimit(int limit) Set an iteration on algorithm- Parameters:
limit-
-
getIterationLimit
int getIterationLimit()Get iteration limit- Returns:
- int
-
getTargetNames
-
getId
-
configureDefaultStrategyMode
void configureDefaultStrategyMode()Configure defaultWorkflowStrategyMode -
evaluateIterationCounter
boolean evaluateIterationCounter()Evaluate iteration counter- Returns:
- boolean
-
resetPolicyQueue
void resetPolicyQueue()Reset policy queue -
getQueueTargets
-
getHasRun
boolean getHasRun()Get whether strategy has run- Returns:
- boolean
-
setHasRun
void setHasRun(boolean val) Set whether strategy has run- Parameters:
val-
-