1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.common.monitor;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
/**
|
15
|
* Interface for progress monitor to be used in the context of
|
16
|
* remoting (spring httpinvoker)
|
17
|
*
|
18
|
* @author cmathew
|
19
|
* @date 14 Oct 2015
|
20
|
*
|
21
|
*/
|
22
|
public interface IRemotingProgressMonitor extends IRestServiceProgressMonitor {
|
23
|
|
24
|
/**
|
25
|
* Returns the result of the monitored job
|
26
|
* @return result of the monitored job
|
27
|
*/
|
28
|
public Object getResult();
|
29
|
|
30
|
/**
|
31
|
* Sets the result of the monitored job
|
32
|
* @param result of the monitored job
|
33
|
*/
|
34
|
public void setResult(Object result);
|
35
|
|
36
|
/**
|
37
|
* Returns the reports generated by the monitored job
|
38
|
* @return the reports generated by the monitored job
|
39
|
*/
|
40
|
public List<String> getReports();
|
41
|
|
42
|
/**
|
43
|
* Adds a report generated by the monitored job
|
44
|
* @param report generated by the monitored job
|
45
|
*/
|
46
|
public void addReport(String report);
|
47
|
|
48
|
/**
|
49
|
* Returns the user who started the monitored job
|
50
|
* @return the user who started the monitored job
|
51
|
*/
|
52
|
public String getOwner();
|
53
|
|
54
|
/**
|
55
|
* Sets the user who started the monitored job
|
56
|
* @param owner the user who started the monitored job
|
57
|
*/
|
58
|
public void setOwner(String owner);
|
59
|
|
60
|
}
|