Revision 40094
Added by Michele Artini over 8 years ago
DeleteIndexJobNode.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.msro.workflows.nodes.index; |
2 | 2 |
|
3 |
import org.apache.commons.logging.Log; |
|
4 |
import org.apache.commons.logging.LogFactory; |
|
5 |
|
|
6 |
import com.googlecode.sarasvati.NodeToken; |
|
7 |
|
|
8 | 3 |
import eu.dnetlib.data.provision.index.rmi.IndexService; |
9 | 4 |
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob; |
5 |
import eu.dnetlib.msro.workflows.graph.Env; |
|
10 | 6 |
import eu.dnetlib.msro.workflows.nodes.BlackboardJobNode; |
7 |
import org.apache.commons.logging.Log; |
|
8 |
import org.apache.commons.logging.LogFactory; |
|
11 | 9 |
|
12 | 10 |
public class DeleteIndexJobNode extends BlackboardJobNode { |
13 | 11 |
|
... | ... | |
17 | 15 |
private String defaultIndexId; |
18 | 16 |
|
19 | 17 |
@Override |
20 |
protected String obtainServiceId(final NodeToken token) {
|
|
18 |
protected String obtainServiceId(final Env env) {
|
|
21 | 19 |
return getServiceLocator().getServiceId(IndexService.class); |
22 | 20 |
} |
23 | 21 |
|
24 | 22 |
@Override |
25 |
protected void prepareJob(final BlackboardJob job, final NodeToken token) throws Exception {
|
|
23 |
protected void prepareJob(final BlackboardJob job, final Env env) throws Exception {
|
|
26 | 24 |
log.info("deleting index id = " + getIndexId()); |
27 | 25 |
|
28 | 26 |
job.setAction("DELETE"); |
Also available in: Unified diff
partial reimplementation of the wf engine