Revision 504fc7ef
Added by Andreas Müller over 7 years ago
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/monitor/RemotingProgressMonitor.java | ||
---|---|---|
20 | 20 |
* |
21 | 21 |
*/ |
22 | 22 |
public class RemotingProgressMonitor extends RestServiceProgressMonitor implements IRemotingProgressMonitor { |
23 |
private static final long serialVersionUID = -3173248814638886884L; |
|
23 | 24 |
|
24 | 25 |
private Serializable result; |
25 | 26 |
private List<String> reports = new ArrayList<String>(); |
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/monitor/RestServiceProgressMonitor.java | ||
---|---|---|
59 | 59 |
this.isFailed = isStopped; |
60 | 60 |
} |
61 | 61 |
|
62 |
/* (non-Javadoc) |
|
63 |
* @see eu.etaxonomy.cdm.common.IProgressMonitor#worked(int) |
|
64 |
*/ |
|
65 | 62 |
@Override |
66 | 63 |
public void worked(int work) { |
67 | 64 |
if(work == -1){ |
... | ... | |
70 | 67 |
super.worked(work); |
71 | 68 |
} |
72 | 69 |
|
73 |
|
|
74 | 70 |
@Override |
75 | 71 |
public void internalWorked(double work) { |
76 | 72 |
if(work == -1){ |
... | ... | |
94 | 90 |
super.done(); |
95 | 91 |
} |
96 | 92 |
|
97 |
/* (non-Javadoc) |
|
98 |
* @see eu.etaxonomy.cdm.common.monitor.IRestServiceProgressMonitor#setDownloadPath(java.lang.String) |
|
99 |
*/ |
|
100 | 93 |
@Override |
101 | 94 |
public void setOrigin(String origin) { |
102 | 95 |
this.origin = origin; |
103 | 96 |
} |
104 | 97 |
|
105 |
/* (non-Javadoc) |
|
106 |
* @see eu.etaxonomy.cdm.common.monitor.IRestServiceProgressMonitor#getDownloadPath() |
|
107 |
*/ |
|
108 | 98 |
@Override |
109 | 99 |
public String getOrigin() { |
110 | 100 |
return this.origin; |
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/monitor/SubProgressMonitor.java | ||
---|---|---|
42 | 42 |
* @see SubMonitor |
43 | 43 |
*/ |
44 | 44 |
public class SubProgressMonitor extends ProgressMonitorWrapper { |
45 |
private static final long serialVersionUID = 3258788051657003998L; |
|
45 | 46 |
|
46 |
/**
|
|
47 |
/** |
|
47 | 48 |
* Style constant indicating that calls to <code>subTask</code> |
48 | 49 |
* should not have any effect. |
49 | 50 |
* |
... | ... | |
130 | 131 |
} |
131 | 132 |
} |
132 | 133 |
|
133 |
/* (Intentionally not javadoc'd) |
|
134 |
* Implements the method <code>IProgressMonitor.done</code>. |
|
135 |
*/ |
|
136 | 134 |
@Override |
137 | 135 |
public void done() { |
138 | 136 |
// Ignore if more done calls than beginTask calls or if we are still |
... | ... | |
153 | 151 |
sentToParent = 0; |
154 | 152 |
} |
155 | 153 |
|
156 |
|
|
157 |
/* (non-Javadoc) |
|
158 |
* @see eu.etaxonomy.cdm.common.monitor.ProgressMonitorWrapper#internalWorked(double) |
|
159 |
*/ |
|
160 | 154 |
@Override |
161 | 155 |
public void internalWorked(double work) { |
162 | 156 |
if (usedUp || nestedBeginTasks != 1) { |
... | ... | |
171 | 165 |
} |
172 | 166 |
} |
173 | 167 |
|
174 |
/* (Intentionally not javadoc'd) |
|
175 |
* Implements the method <code>IProgressMonitor.subTask</code>. |
|
176 |
*/ |
|
177 | 168 |
@Override |
178 | 169 |
public void subTask(String name) { |
179 | 170 |
if ((style & SUPPRESS_SUBTASK_LABEL) != 0) { |
... | ... | |
188 | 179 |
super.subTask(label); |
189 | 180 |
} |
190 | 181 |
|
191 |
/* (Intentionally not javadoc'd) |
|
192 |
* Implements the method <code>IProgressMonitor.worked</code>. |
|
193 |
*/ |
|
194 | 182 |
@Override |
195 | 183 |
public void worked(int work) { |
196 | 184 |
internalWorked(work); |
... | ... | |
199 | 187 |
@Override |
200 | 188 |
public void warning(String message) { |
201 | 189 |
// TODO Auto-generated method stub |
202 |
|
|
203 | 190 |
} |
204 | 191 |
|
205 | 192 |
@Override |
206 | 193 |
public void warning(String message, Throwable throwable) { |
207 | 194 |
// TODO Auto-generated method stub |
208 |
|
|
209 | 195 |
} |
210 | 196 |
|
211 | 197 |
} |
Also available in: Unified diff
some cleanup