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
Modifier and TypeMethodDescriptionvoid
applyRule
(pl.edu.icm.unity.base.translation.TranslationRule rule) Schedule a rule to be invoked immediately.void
applyRuleSync
(pl.edu.icm.unity.base.translation.TranslationRule rule, long timeout) pl.edu.icm.unity.base.bulkops.ScheduledProcessingRule
List<pl.edu.icm.unity.base.bulkops.ScheduledProcessingRule>
void
scheduleRule
(pl.edu.icm.unity.base.bulkops.ScheduledProcessingRuleParam rule) void
updateScheduledRule
(pl.edu.icm.unity.base.bulkops.ScheduledProcessingRule rule)
-
Method Details
-
applyRule
void applyRule(pl.edu.icm.unity.base.translation.TranslationRule rule) throws AuthorizationException Schedule a rule to be invoked immediately.- Parameters:
rule
-- Throws:
AuthorizationException
-
applyRuleSync
void applyRuleSync(pl.edu.icm.unity.base.translation.TranslationRule rule, long timeout) throws AuthorizationException, TimeoutException -
scheduleRule
String scheduleRule(pl.edu.icm.unity.base.bulkops.ScheduledProcessingRuleParam rule) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
removeScheduledRule
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
updateScheduledRule
void updateScheduledRule(pl.edu.icm.unity.base.bulkops.ScheduledProcessingRule rule) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getScheduledRules
List<pl.edu.icm.unity.base.bulkops.ScheduledProcessingRule> getScheduledRules() throws pl.edu.icm.unity.base.exceptions.EngineException- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getScheduledRule
pl.edu.icm.unity.base.bulkops.ScheduledProcessingRule getScheduledRule(String id) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-