Project

General

Profile

Download (1.28 KB) Statistics
| Branch: | Tag: | Revision:
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.common.monitor;
10

    
11
import java.io.Serializable;
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(Serializable 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
    public RemotingProgressMonitorThread getThread();
50

    
51
    public boolean isMonitorThreadRunning();
52

    
53
}
(3-3/10)