Revision 48139
Added by Alessia Bardi almost 7 years ago
CollectDatasetsByJournalJobNode.java | ||
---|---|---|
5 | 5 |
import java.util.concurrent.BlockingQueue; |
6 | 6 |
import java.util.concurrent.Executor; |
7 | 7 |
import java.util.concurrent.Executors; |
8 |
|
|
9 | 8 |
import javax.annotation.Resource; |
10 | 9 |
import javax.xml.ws.wsaddressing.W3CEndpointReference; |
11 | 10 |
|
12 |
import org.apache.commons.logging.Log; |
|
13 |
import org.apache.commons.logging.LogFactory; |
|
14 |
import org.dom4j.Document; |
|
15 |
import org.dom4j.io.SAXReader; |
|
16 |
|
|
17 | 11 |
import com.googlecode.sarasvati.Arc; |
18 | 12 |
import com.googlecode.sarasvati.NodeToken; |
19 |
|
|
20 | 13 |
import eu.dnetlib.data.collector.plugins.datasets.DatasetsByJournalIterator; |
21 | 14 |
import eu.dnetlib.data.collector.plugins.datasets.PangaeaJournalInfo; |
22 | 15 |
import eu.dnetlib.enabling.resultset.IterableResultSetFactory; |
23 | 16 |
import eu.dnetlib.enabling.resultset.client.ResultSetClientFactory; |
24 | 17 |
import eu.dnetlib.enabling.resultset.client.utils.EPRUtils; |
25 | 18 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
19 |
import org.apache.commons.logging.Log; |
|
20 |
import org.apache.commons.logging.LogFactory; |
|
21 |
import org.dom4j.Document; |
|
22 |
import org.dom4j.io.SAXReader; |
|
26 | 23 |
|
27 | 24 |
// TODO: Auto-generated Javadoc |
25 |
|
|
28 | 26 |
/** |
29 | 27 |
* The Class CollectDatasetsByJournalJobNode. |
30 | 28 |
*/ |
... | ... | |
34 | 32 |
|
35 | 33 |
public static PangaeaJournalInfo END_QUEUE = new PangaeaJournalInfo(); |
36 | 34 |
|
37 |
/** The datasource id. */ |
|
35 |
/** |
|
36 |
* The datasource id. |
|
37 |
*/ |
|
38 | 38 |
private String datasourceId; |
39 | 39 |
|
40 |
/** The output epr param. */ |
|
40 |
/** |
|
41 |
* The output epr param. |
|
42 |
*/ |
|
41 | 43 |
private String outputEprParam; |
42 | 44 |
|
43 |
/** The input epr param. */ |
|
45 |
/** |
|
46 |
* The input epr param. |
|
47 |
*/ |
|
44 | 48 |
private String inputEprParam; |
45 | 49 |
|
46 |
/** The result set client factory. */ |
|
50 |
/** |
|
51 |
* The result set client factory. |
|
52 |
*/ |
|
47 | 53 |
private ResultSetClientFactory resultSetClientFactory; |
48 | 54 |
|
49 |
/** The result set factory. */ |
|
55 |
/** |
|
56 |
* The result set factory. |
|
57 |
*/ |
|
50 | 58 |
@Resource(name = "iterableResultSetFactory") |
51 | 59 |
private IterableResultSetFactory resultSetFactory; |
52 | 60 |
|
53 |
/** The executor. */ |
|
61 |
/** |
|
62 |
* The executor. |
|
63 |
*/ |
|
54 | 64 |
private Executor executor = Executors.newSingleThreadExecutor(); |
55 | 65 |
|
56 | 66 |
/* |
... | ... | |
115 | 125 |
/** |
116 | 126 |
* Sets the datasource id. |
117 | 127 |
* |
118 |
* @param datasourceId |
|
119 |
* the datasourceId to set |
|
128 |
* @param datasourceId the datasourceId to set |
|
120 | 129 |
*/ |
121 | 130 |
public void setDatasourceId(final String datasourceId) { |
122 | 131 |
this.datasourceId = datasourceId; |
... | ... | |
130 | 139 |
} |
131 | 140 |
|
132 | 141 |
/** |
133 |
* @param outputEprParam |
|
134 |
* the outputEprParam to set |
|
142 |
* @param outputEprParam the outputEprParam to set |
|
135 | 143 |
*/ |
136 | 144 |
public void setOutputEprParam(final String outputEprParam) { |
137 | 145 |
this.outputEprParam = outputEprParam; |
... | ... | |
145 | 153 |
} |
146 | 154 |
|
147 | 155 |
/** |
148 |
* @param inputEprParam |
|
149 |
* the inputEprParam to set |
|
156 |
* @param inputEprParam the inputEprParam to set |
|
150 | 157 |
*/ |
151 | 158 |
public void setInputEprParam(final String inputEprParam) { |
152 | 159 |
this.inputEprParam = inputEprParam; |
... | ... | |
164 | 171 |
/** |
165 | 172 |
* Sets the result set client factory. |
166 | 173 |
* |
167 |
* @param resultSetClientFactory |
|
168 |
* the resultSetClientFactory to set |
|
174 |
* @param resultSetClientFactory the resultSetClientFactory to set |
|
169 | 175 |
*/ |
170 | 176 |
public void setResultSetClientFactory(final ResultSetClientFactory resultSetClientFactory) { |
171 | 177 |
this.resultSetClientFactory = resultSetClientFactory; |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40