package org.bench4q.monitor.api;

import java.util.concurrent.ExecutionException;

import org.bench4q.monitor.model.MonitorMain;
import org.hyperic.sigar.SigarException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/monitor")
public class MainController {
	@RequestMapping("/all")
	@ResponseBody
	MonitorMain getMainModel() throws SigarException, InterruptedException, ExecutionException {
		MonitorMain retModel = new MonitorMain();
		return retModel;
	}

}
