Project

General

Profile

« Previous | Next » 

Revision 42184

oai import

View differences:

CountSetsAction.java
2 2

  
3 3
import java.util.concurrent.Callable;
4 4

  
5
import eu.dnetlib.data.oai.store.conf.OAISetsCounter;
5
import org.springframework.beans.factory.annotation.Autowired;
6

  
6 7
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob;
7 8
import eu.dnetlib.enabling.tools.blackboard.BlackboardServerHandler;
8
import org.springframework.beans.factory.annotation.Autowired;
9
import eu.dnetlib.oai.conf.OAISetsCounter;
9 10

  
10 11
public class CountSetsAction extends AbstractOAIStoreAction {
11 12

  
......
14 15

  
15 16
	@Override
16 17
	public void execute(final BlackboardServerHandler handler, final BlackboardJob job) throws Exception {
17
		String configuredOnly = job.getParameters().get("configuredOnly");
18
		String storeId = job.getParameters().get("collection");
19
		String dbName = job.getParameters().get("oai_dbName");
18
		final String configuredOnly = job.getParameters().get("configuredOnly");
19
		final String storeId = job.getParameters().get("collection");
20
		final String dbName = job.getParameters().get("oai_dbName");
20 21

  
21 22
		if (configuredOnly.equalsIgnoreCase("false")) {
22 23
			this.executeForAll(storeId, handler, job, dbName);
......
64 65
	}
65 66

  
66 67
	public OAISetsCounter getSetsCounter() {
67
		return setsCounter;
68
		return this.setsCounter;
68 69
	}
69 70

  
70 71
	public void setSetsCounter(final OAISetsCounter setsCounter) {

Also available in: Unified diff