Interface TaskTideWorkloadAcquisitionPolicy

All Known Implementing Classes:
AbstractAcquisitionPolicy, TargetedAcquisitionPolicy, WorkflowAcquisitionPolicy

public interface TaskTideWorkloadAcquisitionPolicy
Interface for defining policies for consuming workloads.
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 Details

    • workflowMode

      boolean workflowMode()
      Returns whether the policy is in workflow mode
      Returns:
      boolean
    • fetchWorkload

      List<WorkItem> fetchWorkload()
      Fetch/build TaskTideModel workload from TaskTideServiceManager from built query
      Returns:
      List-WorkItem
    • hasNext

      boolean hasNext()
      Checks whether there are active tasks
      Returns:
      boolean
    • toJsonString

      String toJsonString()
      Represent as JSON string
      Returns:
      String
    • toJsonDoc

      String toJsonDoc()
      Represent as JSON document
      Returns:
      String
    • 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

      String getTarget()
      Get target field
      Returns:
      String
    • getState

      ItemState getState()
      Get ItemState field
      Returns:
      ItemState
    • setState

      void setState(ItemState state)
      Set ItemState field
      Parameters:
      state -
    • getAnnoKey

      String getAnnoKey()
      Get annotation key field
      Returns:
      String
    • getAnnoVal

      Object getAnnoVal()
      Get annotation value field
      Returns:
      Object
    • setAnnoKeyValue

      void setAnnoKeyValue(String key, Object value)
      Set annotation key-value
      Parameters:
      key -
      value -
    • getAnno

      CustomAnnotation getAnno()
      Returns:
      CustomAnnotation
    • setAnno

      void setAnno(CustomAnnotation anno)
      Parameters:
      anno -
    • getWindowSize

      int getWindowSize()
      Get window size
      Returns:
      int
    • getPoolSize

      int getPoolSize()
      Get pool size
      Returns:
      int
    • getId

      String getId()
      Get Id
      Returns:
      String
    • getPolicyMode

    • clonePolicy

    • setIterationLimit

      void setIterationLimit(int iterationLimit)
      Set iteration limit
      Parameters:
      iterationLimit -
    • getIterationLimit

      int getIterationLimit()
      Get iteration limit
      Returns:
      int