class MachinetaskCallable implements Callable<Map<String, Object>> {

        private String ip;
        private String cmd;
        private SSHService sshService;
        private String type;

        public MachinetaskCallable(String ip, String cmd, SSHService sshService, String type) {
            this.ip = ip;
            this.cmd = cmd;
            this.sshService = sshService;
            this.type = type;
        }


        @Override
        public Map<String, Object> call() {<FILL_FUNCTION_BODY>}
    }


            Map<String, Object> machineResult = new HashMap<String, Object>();
            String info = null;
            try {
                info = sshService.execute(ip, cmd);
                machineResult.put("ip", ip);
                if (!StringUtil.isBlank(info)) {
                    if (type.equals(MachineInfoEnum.MachineEnum.CONTAINER.getValue())) {
                        MachineEnv containerEnv = convertContainer(info);
                        if (containerEnv != null) {
                            machineResult.put("envs", containerEnv);
                            machineResult.put("status", MachineEnv.checkContainer(containerEnv));
                        } else {
                            machineResult.put("status", CheckEnum.EXCEPTION.getValue());
                            machineResult.put("envs", MachineEnv.getDefaultEnv());
                        }
                    } else if (type.equals(MachineInfoEnum.MachineEnum.HOST.getValue())) {
                        MachineEnv hostEnv = convertHost(info);
                        if (hostEnv != null) {
                            machineResult.put("envs", hostEnv);
                            machineResult.put("status", MachineEnv.checkHost(hostEnv));
                        } else {
                            machineResult.put("status", CheckEnum.EXCEPTION.getValue());
                            machineResult.put("envs", MachineEnv.getDefaultEnv());
                        }
                    }
                } else {
                    machineResult.put("status", CheckEnum.EXCEPTION.getValue());
                    machineResult.put("envs", MachineEnv.getDefaultEnv());
                }
            } catch (SSHException e) {
                logger.error("MachinetaskCallable ip:{} error msg :{}",ip,e.getMessage());
                machineResult.put("status", CheckEnum.EXCEPTION.getValue());
                machineResult.put("envs", MachineEnv.getDefaultEnv());
            }

            return machineResult;
        
<no_super_class>