Subversion Repositories SmartDukaan

Rev

Rev 23731 | Rev 23755 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23731 Rev 23738
Line 9... Line 9...
9
import org.slf4j.LoggerFactory;
9
import org.slf4j.LoggerFactory;
10
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.context.annotation.ComponentScan;
11
import org.springframework.context.annotation.ComponentScan;
12
import org.springframework.scheduling.annotation.Scheduled;
12
import org.springframework.scheduling.annotation.Scheduled;
13
import org.springframework.stereotype.Component;
13
import org.springframework.stereotype.Component;
-
 
14
import org.springframework.transaction.annotation.Transactional;
14
 
15
 
15
import com.spice.profitmandi.common.enumuration.SchemeType;
16
import com.spice.profitmandi.common.enumuration.SchemeType;
16
import com.spice.profitmandi.common.web.client.RestClient;
17
import com.spice.profitmandi.common.web.client.RestClient;
17
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
18
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
18
 
19
 
19
@Component
20
@Component
20
@ComponentScan("com.smartdukaan.cron.*")
-
 
21
@ComponentScan("com.spice.profitmandi.common.*")
21
@Transactional(rollbackFor = Throwable.class)
22
public class NagiosMonitorTasks {
22
public class NagiosMonitorTasks {
23
 
23
 
24
	private static final Logger log = LoggerFactory.getLogger(NagiosMonitorTasks.class);
24
	private static final Logger log = LoggerFactory.getLogger(NagiosMonitorTasks.class);
25
 
25
 
26
	private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
26
	private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");