main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java
/**
     * Loads the PDPs from the DB.
     *
     * @param daoFactory DAO factory
     */
Loads the PDPs from the DB.
@param daoFactory DAO factory
Loads the PDPs from the DB . @param daoFactory DAO factory
private void loadPdps(PolicyModelsProviderFactoryWrapper daoFactory) {
        synchronized (modifyLock) {
            try (PolicyModelsProvider dao = daoFactory.create()) {
                for (PdpGroup group : dao.getPdpGroups(null)) {
                    loadPdpsFromGroup(group);
                }
            } catch (PfModelException e) {
                throw new PolicyPapRuntimeException("cannot load PDPs from the DB", e);
            }
        }
    }
private void loadPdps ( PolicyModelsProviderFactoryWrapper daoFactory ) { synchronized ( modifyLock ) { try ( PolicyModelsProvider dao = daoFactory . create ( ) ) { for ( PdpGroup group : dao . getPdpGroups ( null ) ) { loadPdpsFromGroup ( group ) ; } } catch ( PfModelException e ) { throw new PolicyPapRuntimeException ( "cannot load PDPs from the DB" , e ) ; } } }
Loads the PDPs from the DB.
Loads the PDPs from the DB .