Project

General

Profile

« Previous | Next » 

Revision 778d2800

Added by Andreas Müller over 4 years ago

cleanup ProgressMonitor

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/monitor/RemotingProgressMonitor.java
16 16
/**
17 17
 * @author cmathew
18 18
 * @since 14 Oct 2015
19
 *
20 19
 */
21
public class RemotingProgressMonitor extends RestServiceProgressMonitor implements IRemotingProgressMonitor {
20
public class RemotingProgressMonitor
21
            extends RestServiceProgressMonitor
22
            implements IRemotingProgressMonitor {
23

  
22 24
    private static final long serialVersionUID = -3173248814638886884L;
23 25

  
24 26
    private Serializable result;
25 27
    private List<String> reports = new ArrayList<>();
26 28
    private boolean serviceDone;
27
//    private transient RemotingProgressMonitorThread monitorThread;
28

  
29

  
30
    public RemotingProgressMonitor(RemotingProgressMonitorThread monitorThread) {
31
//        if(monitorThread == null) {
32
//            throw new IllegalStateException("Monitor Thread is null");
33
//        }
34
//        this.monitorThread = monitorThread;
35
    }
36 29

  
37 30
    public RemotingProgressMonitor() {
38 31

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IProgressMonitorService.java
15 15
import eu.etaxonomy.cdm.common.monitor.RemotingProgressMonitorThread;
16 16

  
17 17
/**
18
 *
19 18
 * Service interface to manage progress monitors
20 19
 *
21 20
 * @author cmathew
22 21
 * @since 14 Oct 2015
23
 *
24 22
 */
25 23
public interface IProgressMonitorService {
26 24

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ProgressMonitorServiceImpl.java
38 38

  
39 39
    @Override
40 40
    public UUID registerNewRemotingMonitor(RemotingProgressMonitorThread monitorThread) {
41
        RemotingProgressMonitor monitor = new RemotingProgressMonitor(monitorThread);
41
        RemotingProgressMonitor monitor = new RemotingProgressMonitor();
42 42
        monitorThread.setMonitor(monitor);
43 43
        UUID uuid = progressMonitorManager.registerMonitor(monitor, monitorThread);
44 44
        User user = User.getCurrentAuthenticatedUser();

Also available in: Unified diff