Revision 59405
Added by Alessia Bardi over 3 years ago
ProcessCountingResultSetListener.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
|
5 |
import eu.dnetlib.enabling.resultset.client.ResultSetClient; |
|
5 | 6 |
import org.apache.commons.lang.StringUtils; |
6 | 7 |
import org.apache.commons.logging.Log; |
7 | 8 |
import org.apache.commons.logging.LogFactory; |
... | ... | |
45 | 46 |
public List<String> getResult(final int from, final int to) { |
46 | 47 |
if (process.isCanceled()) { |
47 | 48 |
this.outputResulset.close(); |
48 |
return Lists.newArrayList(); |
|
49 |
return Lists.newArrayList(ResultSetClient.SENTINEL_PROC_CANCELED);
|
|
49 | 50 |
} |
50 | 51 |
try { |
51 | 52 |
this.count = to; |
Also available in: Unified diff
Trying to avoid mdstore to store transaction of cancelled feeding