1
|
/**
|
2
|
* Copyright (C) 2015 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.api.longrunningService;
|
10
|
|
11
|
import java.util.Set;
|
12
|
import java.util.UUID;
|
13
|
|
14
|
import eu.etaxonomy.cdm.api.service.IDescriptiveDataSetService;
|
15
|
import eu.etaxonomy.cdm.api.service.config.CacheUpdaterConfigurator;
|
16
|
import eu.etaxonomy.cdm.api.service.config.ForSubtreeConfiguratorBase;
|
17
|
import eu.etaxonomy.cdm.api.service.config.SortIndexUpdaterConfigurator;
|
18
|
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
|
19
|
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
|
20
|
|
21
|
/**
|
22
|
* @author cmathew
|
23
|
* @since 31 Jul 2015
|
24
|
*
|
25
|
*/
|
26
|
public interface ILongRunningTasksService {
|
27
|
|
28
|
|
29
|
/**
|
30
|
* @param configurator
|
31
|
* @return
|
32
|
*/
|
33
|
public UUID monitLongRunningTask(ForSubtreeConfiguratorBase configurator);
|
34
|
|
35
|
/**
|
36
|
* @param configurator
|
37
|
* @return
|
38
|
*/
|
39
|
public UUID monitLongRunningTask(CacheUpdaterConfigurator configurator);
|
40
|
|
41
|
|
42
|
/**
|
43
|
* @param movingUuids
|
44
|
* @param targetTreeNodeUuid
|
45
|
* @param movingType
|
46
|
* @param monitor
|
47
|
* @return
|
48
|
*/
|
49
|
UUID monitLongRunningTask(Set<UUID> movingUuids, UUID targetTreeNodeUuid, int movingType);
|
50
|
|
51
|
|
52
|
public UUID aggregateComputedTaxonDescriptions(UUID taxonNodeUuid, UUID descriptiveDataSetUuid);
|
53
|
|
54
|
/**
|
55
|
* Monitored invocation of {@link IDescriptiveDataSetService#getRowWrapper(DescriptiveDataSet, IProgressMonitor)}
|
56
|
* @param descriptiveDataSet the working set for which getRowWrapper() is invoked
|
57
|
* @return the uuid of the monitor
|
58
|
*/
|
59
|
public UUID monitGetRowWrapper(DescriptiveDataSet descriptiveDataSet);
|
60
|
|
61
|
/**
|
62
|
* @param configurator
|
63
|
* @return
|
64
|
*/
|
65
|
UUID monitLongRunningTask(SortIndexUpdaterConfigurator configurator);
|
66
|
}
|