Package pl.edu.icm.unity.engine.api
Interface BulkProcessingManagement
-
public interface BulkProcessingManagement
Defines API allowing for bulk processing of entities - both manually and basing on a repeatable schedule.- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
applyRule(TranslationRule rule)
Schedule a rule to be invoked immediately.void
applyRuleSync(TranslationRule rule, long timeout)
ScheduledProcessingRule
getScheduledRule(String id)
List<ScheduledProcessingRule>
getScheduledRules()
void
removeScheduledRule(String id)
String
scheduleRule(ScheduledProcessingRuleParam rule)
void
updateScheduledRule(ScheduledProcessingRule rule)
-
-
-
Method Detail
-
applyRule
void applyRule(TranslationRule rule) throws AuthorizationException
Schedule a rule to be invoked immediately.- Parameters:
rule
-- Throws:
AuthorizationException
-
applyRuleSync
void applyRuleSync(TranslationRule rule, long timeout) throws AuthorizationException, TimeoutException
-
scheduleRule
String scheduleRule(ScheduledProcessingRuleParam rule) throws EngineException
- Throws:
EngineException
-
removeScheduledRule
void removeScheduledRule(String id) throws EngineException
- Throws:
EngineException
-
updateScheduledRule
void updateScheduledRule(ScheduledProcessingRule rule) throws EngineException
- Throws:
EngineException
-
getScheduledRules
List<ScheduledProcessingRule> getScheduledRules() throws EngineException
- Throws:
EngineException
-
getScheduledRule
ScheduledProcessingRule getScheduledRule(String id) throws EngineException
- Throws:
EngineException
-
-