Interface TaskTideWorkloadAcquisitionPolicy
- All Known Implementing Classes:
AbstractAcquisitionPolicy, TargetedAcquisitionPolicy, WorkflowAcquisitionPolicy
public interface TaskTideWorkloadAcquisitionPolicy
Interface for defining policies for consuming workloads.
All policies resolve to a
Leaving the definition of the target up to the user, provides a much broader and generic approach to DAG scheduling then explicitly taking this on
All policies resolve to a
WorkItem, some may only
target a specific step/task collection, or target a set
of steps for a workflow
Leaving the definition of the target up to the user, provides a much broader and generic approach to DAG scheduling then explicitly taking this on
-
Method Summary
Modifier and TypeMethodDescriptionClone activeTaskTideWorkloadAcquisitionPolicyFetch/buildTaskTideModelworkload fromTaskTideServiceManagerfrom built querygetAnno()GetCustomAnnotationfieldGet annotation key fieldGet annotation value fieldgetId()Get IdintGet iteration limitintGet pool sizegetState()GetItemStatefieldGet target fieldintGet window sizebooleanhasNext()Checks whether there are active tasksbooleanReturn whether the annotation field has been setbooleanReturn whether annotation string has been setbooleanReturn whether targetted field has been setvoidsetAnno(CustomAnnotation anno) SetCustomAnnotationfieldvoidsetAnnoKeyValue(String key, Object value) Set annotation key-valuevoidsetIterationLimit(int iterationLimit) Set iteration limitvoidSetItemStatefieldRepresent as JSON documentRepresent as JSON stringbooleanReturns whether the policy is in workflow mode
-
Method Details
-
workflowMode
boolean workflowMode()Returns whether the policy is in workflow mode- Returns:
- boolean
-
fetchWorkload
Fetch/buildTaskTideModelworkload fromTaskTideServiceManagerfrom built query- Returns:
- List-
WorkItem
-
hasNext
boolean hasNext()Checks whether there are active tasks- Returns:
- boolean
-
toJsonString
-
toJsonDoc
-
isTargeted
boolean isTargeted()Return whether targetted field has been set- Returns:
- booleam
-
isStringAnnotated
boolean isStringAnnotated()Return whether annotation string has been set- Returns:
- boolean
-
isCustomAnnotated
boolean isCustomAnnotated()Return whether the annotation field has been set- Returns:
- boolean
-
getTarget
-
getState
-
setState
-
getAnnoKey
-
getAnnoVal
-
setAnnoKeyValue
-
getAnno
-
setAnno
-
getWindowSize
int getWindowSize()Get window size- Returns:
- int
-
getPoolSize
int getPoolSize()Get pool size- Returns:
- int
-
getId
-
getPolicyMode
-
clonePolicy
TaskTideWorkloadAcquisitionPolicy clonePolicy()Clone activeTaskTideWorkloadAcquisitionPolicy- Returns:
TaskTideWorkloadAcquisitionPolicyclone
-
setIterationLimit
void setIterationLimit(int iterationLimit) Set iteration limit- Parameters:
iterationLimit-
-
getIterationLimit
int getIterationLimit()Get iteration limit- Returns:
- int
-