Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
ScheduledWorkflowLauncher.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Date; |
4 | 4 |
|
5 |
import javax.annotation.Resource; |
|
6 |
|
|
7 |
import org.apache.commons.lang3.StringUtils; |
|
8 |
import org.apache.commons.lang3.math.NumberUtils; |
|
9 |
import org.apache.commons.logging.Log; |
|
10 |
import org.apache.commons.logging.LogFactory; |
|
11 |
import org.quartz.CronExpression; |
|
12 |
import org.springframework.beans.factory.annotation.Required; |
|
13 |
|
|
14 | 5 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
15 | 6 |
import eu.dnetlib.miscutils.datetime.DateUtils; |
16 | 7 |
import eu.dnetlib.msro.workflows.procs.ProcessRegistry; |
... | ... | |
18 | 9 |
import eu.dnetlib.msro.workflows.procs.WorkflowProcess; |
19 | 10 |
import eu.dnetlib.rmi.enabling.ISLookUpException; |
20 | 11 |
import eu.dnetlib.rmi.enabling.ISLookUpService; |
12 |
import org.apache.commons.lang3.StringUtils; |
|
13 |
import org.apache.commons.lang3.math.NumberUtils; |
|
14 |
import org.apache.commons.logging.Log; |
|
15 |
import org.apache.commons.logging.LogFactory; |
|
16 |
import org.quartz.CronExpression; |
|
17 |
import org.springframework.beans.factory.annotation.Autowired; |
|
18 |
import org.springframework.beans.factory.annotation.Required; |
|
21 | 19 |
|
22 | 20 |
public class ScheduledWorkflowLauncher { |
23 | 21 |
|
... | ... | |
31 | 29 |
|
32 | 30 |
private int windowSize = 7200000; // 2 hours |
33 | 31 |
|
34 |
@Resource
|
|
32 |
@Autowired
|
|
35 | 33 |
private UniqueServiceLocator serviceLocator; |
36 | 34 |
|
37 | 35 |
public void verifySheduledWorkflows() { |
Also available in: Unified diff
Chnaged Resource to Autowired