class MarathonBackUpTask {

	public static void doMarathonBackUp() throws Exception {
		logger.info("************** STARTED MarathonBackUp **************");
		List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments();
		for(EnvironmentVO eVo : environmentVOs){
			getMarathonJson(eVo);
			logger.info("Got Marathon JSON for " + eVo.getEnvironmentName() + " Time : " + new Date());
			logger.info("JSON " +  eVo.getMarathonJson());
		}
		DBQueryUtil.updateEnvironmentDetails(environmentVOs);
		MarathonConfigProcessor.updateApiList(environmentVOs);
		logger.info("************** COMPLETED MarathonBackUp **************");
	}

	private  MarathonBackUpTask();

}