package com.ag.web.docker.web;

import com.ag.secp.platform.common.DockerCommon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.scheduling.annotation.Scheduled;
/**
 * Created by shaoqiang on 2017/5/17.
 */
@Component("taskJob")
public class TaskMonitor {
    @Autowired
    DockerCommon dockerCommon;

    //@Scheduled(cron = "0 */2 * * * ??")
    public void  taskRUn() {
      //  DockerCommon comm=new DockerCommon();
        dockerCommon.insertContainerstates();
        //List<Container> containers = docker.listContainers(DockerClient.ListContainersParam.allContainers());
       // getContainerstates
    }
}
