class ServerDataServiceImpl implements ServerDataService {
	private static final Logger logger = LoggerFactory.getLogger(ServerDataServiceImpl.class);
	@Autowired
	private ServerStatusDao serverStatusDao;
	
	@Override
	public ServerInfo queryServerInfo(String ip) {
		try {
			return serverStatusDao.queryServerInfo(ip);
		} catch (Exception e) {
			logger.error("query err:"+ip, e);
		}
		return null;
	}

	public List<ServerInfo> getAllServerInfo(){
		try {
			return serverStatusDao.getAllServerInfo();
		} catch (Exception e) {
			logger.error(e.getMessage(),e);
		}
		return null;
	}

	@Override
	public void saveServerInfo(String ip, String dist) {<FILL_FUNCTION_BODY>}

	public Integer saveAndUpdateServerInfo(Server server) {
		if(server.getHost() == null || server.getNmon() == null || server.getCpus() == 0 || 
		   server.getCpuModel() == null || server.getKernel() == null || server.getUlimit() == null) {
			return null;
		}
		try {
			return serverStatusDao.saveAndUpdateServerInfo(server);
		} catch (Exception e) {
			logger.error("saveAndUpdateServerInfo err server="+server, e);
		}
		return null;
	}

	@Override
	public List<ServerStatus> queryServerStatus(String ip, String date) {
		try {
			return serverStatusDao.queryServerStatus(ip, date);
		} catch (Exception e) {
			logger.error("queryServerStatus err ip="+ip+" date="+date, e);
		}
		return new ArrayList<ServerStatus>(0);
	}

	@Override
	public List<ServerStatus> queryServerOverview(String ip, String date) {
		try {
			return serverStatusDao.queryServerOverview(ip, date);
		} catch (Exception e) {
			logger.error("queryServerOverview err ip="+ip+" date="+date, e);
		}
		return new ArrayList<ServerStatus>(0);
	}

	@Override
	public List<ServerStatus> queryServerCpu(String ip, String date) {
		try {
			return serverStatusDao.queryServerCpu(ip, date);
		} catch (Exception e) {
			logger.error("queryServerCpu err ip="+ip+" date="+date, e);
		}
		return new ArrayList<ServerStatus>(0);
	}

	@Override
	public List<ServerStatus> queryServerNet(String ip, String date) {
		try {
			return serverStatusDao.queryServerNet(ip, date);
		} catch (Exception e) {
			logger.error("queryServerNet err ip="+ip+" date="+date, e);
		}
		return new ArrayList<ServerStatus>(0);
	}

	@Override
	public List<ServerStatus> queryServerDisk(String ip, String date) {
		try {
			return serverStatusDao.queryServerDisk(ip, date);
		} catch (Exception e) {
			logger.error("queryServerDisk err ip="+ip+" date="+date, e);
		}
		return new ArrayList<ServerStatus>(0);
	}

	@Override
	public void saveServerStat(Server server) {
		if(server == null || server.getDateTime() == null) {
			return;
		}
		try {
			serverStatusDao.saveServerStat(server);
		} catch (Exception e) {
			logger.error("saveServerStat err server="+server, e);
		}
	}
}

		if(dist == null) {
			return;
		}
		dist = dist.trim();
		if(dist.length() == 0) {
			return;
		}
		try {
			serverStatusDao.saveServerInfo(ip, dist);
		} catch (Exception e) {
			logger.error("saveServerInfo err:"+ip+" dist="+dist, e);
		}
	
<no_super_class>