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