class ExamToolController extends BaseController{
    @Autowired
    private TaskService taskService;
    @Autowired
    private MachineDao machineDao;
    @Autowired
    TopologyExamTask topologyExamTask;

    @RequestMapping(value = "/topologyExam")
    public ModelAndView startTopologyExam(Model model,
                                          long appId){

        ArrayList<AppDesc> applist = new ArrayList<AppDesc>();
        AppDesc appDesc = appService.getByAppId(appId);
        if(appDesc.getAppId() > 0){
            applist.add(appDesc);
            Map<String, Object> info = topologyExamTask.check(applist);
            model.addAttribute("checkInfo",info);
        }
        return new ModelAndView("manage/appTool/appKeysDealTool");
    }

    @RequestMapping(value = "/topologyExam/online",method = RequestMethod.POST)
    public long startAllTopologyExam(){
        long taskId=taskService.addAppTopologyExamTask(true, ExamToolEnum.EXAM_NON_TEST.getValue(),0,0);
        return taskId;
    }

    @RequestMapping(value = "/machineExam",method = RequestMethod.GET)
    public ModelAndView startMachineExam(Model model,
                                         @RequestParam Integer useType,
                                         @RequestParam String ipLike){<FILL_FUNCTION_BODY>}

}

        List<String> machineIpList=Lists.newArrayList();
        List<MachineInfo> machineInfoByCondition = machineDao.getMachineInfoByCondition(ipLike, useType, -1, null, -1, null);
        for (MachineInfo machineInfo:machineInfoByCondition){
            machineIpList.add(machineInfo.getIp());
        }
        taskService.addMachineExamTask(machineIpList,useType,0);
        return new ModelAndView("");
    
<methods>public non-sealed void <init>() ,public boolean clearTempResource(java.lang.String) ,public java.lang.String getTempResource(java.lang.String) ,public com.sohu.cache.entity.AppUser getUserInfo(javax.servlet.http.HttpServletRequest) ,public java.lang.String markdown2html(java.lang.String, java.lang.String) throws java.lang.Exception,public byte[] read(java.io.InputStream) throws java.io.IOException,public java.lang.Boolean saveTempResource(java.lang.String, java.lang.String) ,public void sendMessage(javax.servlet.http.HttpServletResponse, java.lang.String) <variables>protected com.sohu.cache.dao.AppAuditDao appAuditDao,protected com.sohu.cache.dao.AppAuditLogDao appAuditLogDao,protected com.sohu.cache.stats.app.AppDeployCenter appDeployCenter,protected com.sohu.cache.web.util.AppEmailUtil appEmailUtil,protected com.sohu.cache.dao.AppImportDao appImportDao,protected com.sohu.cache.web.service.AppService appService,protected com.sohu.cache.stats.app.AppStatsCenter appStatsCenter,com.sohu.cache.redis.AssistRedisService assistRedisService,protected com.sohu.cache.async.AsyncService asyncService,protected com.sohu.cache.dao.InstanceDao instanceDao,protected com.sohu.cache.stats.instance.InstanceDeployCenter instanceDeployCenter,protected final org.slf4j.Logger logger,protected com.sohu.cache.machine.MachineCenter machineCenter,protected com.sohu.cache.redis.RedisCenter redisCenter,protected com.sohu.cache.redis.RedisConfigTemplateService redisConfigTemplateService,protected com.sohu.cache.redis.RedisDeployCenter redisDeployCenter,protected com.sohu.cache.web.service.ResourceService resourceService,protected com.sohu.cache.web.service.UserLoginStatusService userLoginStatusService,protected com.sohu.cache.web.service.UserService userService