StreamProxyTask.java
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.genersoft.iot.vmp.conf;
import com.genersoft.iot.vmp.VManageBootstrap;
import com.genersoft.iot.vmp.service.IMediaServerService;
import com.genersoft.iot.vmp.service.IStreamProxyService;
import com.genersoft.iot.vmp.service.StremProxyService1078;
import com.genersoft.iot.vmp.service.impl.StreamProxyServiceImpl;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.TimeUnit;
@Component
public class StreamProxyTask {
public static final Long TIME_OUT = 180L;
@Autowired
private IStreamProxyService streamProxyService;
@Scheduled(cron = "0 45 * * * ? ")
public void work() {
streamProxyService.choose1078Lister();
// task execution logic
}
private void sendIORequestStop(String stream) {
}
}