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);
}
}
Aggregations