Interface ITaskVotingStrategyManager
public interface ITaskVotingStrategyManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeStatusRecalculation
(IURI principalURI, ITaskDefinition taskDefinition) 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.getType()
void
Activation of service.boolean
void
stopTasksVotingStrategyUpdate
(ITaskDefinition taskDefinition) Stops the task strategy update operation on the underlying engine storage if there is already a running one.void
updateTaskVotingStrategy
(IURI principalURI, ITaskDefinition taskDefinition) By a given task definition, change all votable task instances voting strategy in the underlying engine storage.void
updateTaskVotingStrategy
(IURI principalURI, ITaskDefinition taskDefinition, boolean executeRecalculation) By a given task definition, change all votable task instances voting strategy in the underlying engine storage, and execute status recalculation.
-
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 definitionexecuteRecalculation
-- 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 executionSQLException
-
getType
String getType()- Returns:
- type of the Voting Strategy Engine (for example - db, hpstra)
-
isEnabled
boolean isEnabled()- Returns:
- if the Manager is enabled
-
initialize
Activation of service.- Throws:
Exception
- - if any exception occurs during service initialization
-
stopTasksVotingStrategyUpdate
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
-