Interface ITaskVotingStrategyManager


public interface ITaskVotingStrategyManager
  • Method Details

    • updateTaskVotingStrategy

      void updateTaskVotingStrategy(IURI principalURI, ITaskDefinition taskDefinition) throws PortalException
      By a given task definition, change all votable task instances voting strategy in the underlying engine storage. The operation is asynchronous, since it can last very long.
      Parameters:
      taskDefinition - - the task definition
      Throws:
      PortalException - if any problem occurs during the operation execution
    • updateTaskVotingStrategy

      void updateTaskVotingStrategy(IURI principalURI, ITaskDefinition taskDefinition, boolean executeRecalculation) throws PortalException
      By a given task definition, change all votable task instances voting strategy in the underlying engine storage, and execute status recalculation. The operation is asynchronous, since it can last very long.
      Parameters:
      taskDefinition - - the task definition
      executeRecalculation -
      Throws:
      PortalException - if any problem occurs during the operation execution
    • executeStatusRecalculation

      void executeStatusRecalculation(IURI principalURI, ITaskDefinition taskDefinition) throws PortalException, SQLException
      By a given task definition, execute status recalculation for all votable task instances based on voting strategy The operation is asynchronous, since it can last very long.
      Parameters:
      taskDefinition - - the task definition based on task voting strategy
      Throws:
      PortalException - if any problem occurs during the operation execution
      SQLException
    • getType

      String getType()
      Returns:
      type of the Voting Strategy Engine (for example - db, hpstra)
    • isEnabled

      boolean isEnabled()
      Returns:
      if the Manager is enabled
    • initialize

      void initialize() throws Exception
      Activation of service.
      Throws:
      Exception - - if any exception occurs during service initialization
    • stopTasksVotingStrategyUpdate

      void stopTasksVotingStrategyUpdate(ITaskDefinition taskDefinition) throws PortalException
      Stops the task strategy update operation on the underlying engine storage if there is already a running one.
      Parameters:
      taskDef - - the task definition
      Throws:
      PortalException - if any problem occurs during the operation execution
    • getStrategyUpdateJobStatusDBField

      String getStrategyUpdateJobStatusDBField()
      Returns:
      Then name of the DB column where the job status is recorded