StreamProxyTask.java 1.17 KB
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) {


    }
}