Search in sources :

Example 1 with EcReptileEngineQuery

use of com.easy.cloud.core.reptile.engine.pojo.query.EcReptileEngineQuery in project dq-easy-cloud by dq-open-cloud.

the class EcReptileDynamicBeanServiceImpl method loadReptileEngine.

/**
 * <p>
 * 更新爬虫引擎的规则
 * </p>
 *
 * @return
 * @author daiqi
 * @date 2018/6/12 17:14
 */
private synchronized void loadReptileEngine(List<EcReptileDynamicBeanDTO> dynamicBeanDTOs) {
    // 顶级父动态bean数据传输对象需要加载爬虫引擎
    EcReptileDynamicBeanDTO topParentDynamicBeanDTO = findTopParentDynamicBeanDTO(dynamicBeanDTOs);
    if (topParentDynamicBeanDTO != null) {
        // 获取爬虫引擎
        EcReptileEngineQuery reptileEngineQuery = new EcReptileEngineQuery();
        reptileEngineQuery.setReptileEngineNo(topParentDynamicBeanDTO.getReptileEngineNo());
        reptileEngineQuery.setReptileDynamicBeanDTO(topParentDynamicBeanDTO);
        // 加载爬虫引擎
        reptileEngineService.loadReptileEngineByCore(reptileEngineQuery);
    }
}
Also used : EcReptileEngineQuery(com.easy.cloud.core.reptile.engine.pojo.query.EcReptileEngineQuery) EcReptileDynamicBeanDTO(com.easy.cloud.core.reptile.dynamicbean.pojo.dto.EcReptileDynamicBeanDTO)

Aggregations

EcReptileDynamicBeanDTO (com.easy.cloud.core.reptile.dynamicbean.pojo.dto.EcReptileDynamicBeanDTO)1 EcReptileEngineQuery (com.easy.cloud.core.reptile.engine.pojo.query.EcReptileEngineQuery)1