Package pl.edu.icm.unity.engine.api
Interface BulkProcessingManagement
-
public interface BulkProcessingManagementDefines 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 voidapplyRule(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.ScheduledProcessingRulegetScheduledRule(java.lang.String id)java.util.List<pl.edu.icm.unity.types.bulkops.ScheduledProcessingRule>getScheduledRules()voidremoveScheduledRule(java.lang.String id)java.lang.StringscheduleRule(pl.edu.icm.unity.types.bulkops.ScheduledProcessingRuleParam rule)voidupdateScheduledRule(pl.edu.icm.unity.types.bulkops.ScheduledProcessingRule rule)
-
-
-
Method Detail
-
applyRule
void applyRule(pl.edu.icm.unity.types.translation.TranslationRule rule) throws pl.edu.icm.unity.exceptions.AuthorizationExceptionSchedule 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, java.util.concurrent.TimeoutException- Throws:
pl.edu.icm.unity.exceptions.AuthorizationExceptionjava.util.concurrent.TimeoutException
-
scheduleRule
java.lang.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
void removeScheduledRule(java.lang.String id) throws pl.edu.icm.unity.exceptions.EngineException- 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
java.util.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(java.lang.String id) throws pl.edu.icm.unity.exceptions.EngineException- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
-