Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

SwitchIndexJobNode.java
2 2

  
3 3
import java.util.List;
4 4

  
5
import org.apache.commons.lang.StringUtils;
6

  
7 5
import com.googlecode.sarasvati.NodeToken;
8

  
9 6
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
10 7
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
11 8
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob;
12 9
import eu.dnetlib.msro.rmi.MSROException;
13 10
import eu.dnetlib.msro.workflows.nodes.BlackboardJobNode;
11
import org.apache.commons.lang.StringUtils;
14 12
import org.apache.commons.logging.Log;
15 13
import org.apache.commons.logging.LogFactory;
16 14

  
17 15
/**
18 16
 * SwitchIndexJobNode performs index switch.
19
 * 
17
 *
20 18
 * @author claudio
21
 * @deprecated
22 19
 * @see eu.dnetlib.msro.openaireplus.workflows.nodes.index.SwitchSearchServiceJobNode
23 20
 * @see eu.dnetlib.msro.openaireplus.workflows.nodes.index.SwitchIndexesJobNode
21
 * @deprecated
24 22
 */
25 23
@Deprecated
26 24
public class SwitchIndexJobNode extends BlackboardJobNode {
......
55 53

  
56 54
		checkParam(getInputIndexIdParam(), "output indexId param is missing");
57 55
		checkParam(indexId, "indexId is required to perform switch");
58
		log.info("Switching "+obtainServiceId(token)+" to index "+indexId);
56
		log.info("Switching " + obtainServiceId(token) + " to index " + indexId);
59 57
		job.getParameters().put(getOutputIndexIdParam(), indexId);
60 58
	}
61 59

  

Also available in: Unified diff