class MarathonConfigProcessor {

    public static void compareAPILists(List<ComponentVO> oldAPIComponentVOs, List<ComponentVO> newAPIComponentVOs, int enviromentId, long regionId) throws SQLException{
        logger.debug("Comparing old DB API list and new API list from marathon config");
        for(ComponentVO cVo : oldAPIComponentVOs){
            int compId = cVo.getComponentId();
            boolean isfound = false;
            for(ComponentVO newCVo : newAPIComponentVOs){
                if(newCVo.getComponentId() == compId){
                    isfound = true;
                    break;
                }
            }
            //Update delInd of component and healthCheck. Note :- cVo.getDelInd() is the DEL_IND of healthCheck table - refer DB_QUERY_GET_COMPONENT_DETAILS
            if(!isfound && cVo.getDelInd() == 0){
                DBQueryUtil.updateDelIndForHealthCheck(compId, 1, enviromentId, regionId);
            } else if(isfound && cVo.getDelInd() == 1){
                DBQueryUtil.updateDelIndForHealthCheck(compId, 0, enviromentId, regionId);
            }
        }
    }

    private  MarathonConfigProcessor();

}