Authored by wangnan

优化mqlinster代码结构,减少重复代码

Showing 44 changed files with 97 additions and 61 deletions
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.db;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.dynwords.EsWordDefService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.EsWordDef;
import org.apache.commons.lang.StringUtils;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.db;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.PromotionInfoService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.PromotionInfo;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.db;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.PromotionParamsService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.PromotionParams;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.db;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ScoreRuleService;
import com.yoho.search.consumer.service.logic.ScoreRuleLogicService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.db;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.StandardService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.Standard;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.alibaba.fastjson.JSONObject;
import com.rabbitmq.client.Channel;
... ... @@ -9,6 +9,7 @@ import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
import com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.BrandService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.Brand;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.alibaba.fastjson.JSONObject;
import com.rabbitmq.client.Channel;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.HelperService;
import com.yoho.search.core.es.model.ESBluk;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductColorService;
import com.yoho.search.consumer.service.logic.productIndex.ProductGoodsLogicService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ... @@ -40,8 +41,7 @@ public class ProductColorMqListener extends AbstractMqListener implements Channe
@Override
public void onMessage(Message message, Channel channel) throws Exception {
try {
String indexName = ISearchConstants.INDEX_NAME_PRODUCT_COLOR;
String idField = ISearchConstants.getKeyField(indexName);
String idField = ISearchConstants.getKeyField(getIndexName());
if (StringUtils.isBlank(idField)) {
throw new Exception("idField is empty,indexName is " + getIndexName());
}
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.alibaba.fastjson.JSONObject;
import com.rabbitmq.client.Channel;
... ... @@ -8,6 +8,7 @@ import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.base.utils.PriceUtil;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductPricePlanService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ProductPricePlan;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -8,6 +8,7 @@ import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
import com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductSortService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ProductSort;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.RobotQuestionService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.RobotQuestion;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ShopsBrandsService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ShopsBrands;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.alibaba.fastjson.JSONObject;
import com.rabbitmq.client.Channel;
... ... @@ -8,6 +8,7 @@ import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ShopService;
import com.yoho.search.core.es.model.ESBluk;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.SizeService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.Size;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.StyleService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.Style;
... ... @@ -30,7 +31,7 @@ public class StyleMqListener extends AbstractMqListener implements ChannelAwareM
@Override
public String getIndexName() {
return ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
return ISearchConstants.INDEX_NAME_STYLE;
}
@Override
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.base.utils.MD5Util;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.SuggestConversionCustomService;
import com.yoho.search.consumer.service.base.SuggestConversionService;
import com.yoho.search.consumer.suggests.common.SuggestionConstants;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.otherIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.*;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.SuggestWordCustomService;
import com.yoho.search.consumer.service.base.SuggestWordDefService;
import com.yoho.search.consumer.suggests.common.KeywordType;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSONArray;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.GoodsService;
import com.yoho.search.consumer.service.bo.ProductGoodsBO;
import com.yoho.search.consumer.service.bo.ProductSizesBO;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSONArray;
import com.rabbitmq.client.Channel;
... ... @@ -6,6 +6,7 @@ import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ActivityProductService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSONArray;
import com.rabbitmq.client.Channel;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.common.CostStatistics;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.GoodsImagesService;
import com.yoho.search.consumer.service.base.GoodsService;
import com.yoho.search.consumer.service.bo.ProductGoodsBO;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ParameterMakeService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ParameterMake;
... ... @@ -35,7 +36,6 @@ public class ParameterMakeMqListener extends AbstractMqListener implements Chann
publisher.publishEvent(new SearchLogsEvent("MqListener", EventReportEnum.PARAMETERMAKEMQLISTENER_ONMESSAGE.getMoudleName(), "monitor",nowTimeMillis+""));
// 记录上报的日志
SEARCH_EVENT_LOG.info("report to influxDb,currentTimeMillis is [{}],EventName is [{}] ,MoudleName is [{}]",nowTimeMillis, "MqListener", "consumer");
printIncreaseMark();
} catch (Exception e) {
publisher.publishEvent(new SearchEvent(EventReportEnum.PARAMETERMAKEMQLISTENER_ONMESSAGE.getEventName(),
EventReportEnum.PARAMETERMAKEMQLISTENER_ONMESSAGE.getFunctionName(),
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.common.CostStatistics;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductActivitiesLinkService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ... @@ -47,7 +48,6 @@ public class ProductActivitiesLinkMqListener extends AbstractMqListener implemen
publisher.publishEvent(new SearchLogsEvent("MqListener", EventReportEnum.PRODUCTACTIVITIESLINKMQLISTENER_ONMESSAGE.getMoudleName(), "monitor", nowTimeMillis + ""));
// 记录上报的日志
SEARCH_EVENT_LOG.info("report to influxDb,currentTimeMillis is [{}],EventName is [{}] ,MoudleName is [{}]", nowTimeMillis, "MqListener", "consumer");
printIncreaseMark();
} catch (Exception e) {
publisher.publishEvent(new SearchEvent(EventReportEnum.PRODUCTACTIVITIESLINKMQLISTENER_ONMESSAGE.getEventName(),
EventReportEnum.PRODUCTACTIVITIESLINKMQLISTENER_ONMESSAGE.getFunctionName(), EventReportEnum.PRODUCTACTIVITIESLINKMQLISTENER_ONMESSAGE.getMoudleName(),
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductAttributeService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ProductAttribute;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductAttributeService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductExtService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSONObject;
import com.rabbitmq.client.Channel;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductIndexService;
import com.yoho.search.consumer.service.bo.ProductIndexBO;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductKeywordsService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ProductKeywords;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
... ... @@ -11,6 +11,7 @@ import com.yoho.search.consumer.common.CostStatistics;
import com.yoho.search.consumer.common.PerformanceMonitor;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductPriceService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.consumer.service.bo.ProductIBO;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
... ... @@ -8,6 +8,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.common.CostStatistics;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductPoolDetailService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductPriceService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.consumer.service.bo.ProductPriceBO;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductSearchService;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ... @@ -28,8 +28,6 @@ public class ProductSearchMqListener extends AbstractMqListener implements Chann
@Autowired
private ProductSearchService productSearchService;
@Autowired
private IYohoIndexService indexService;
@Autowired
private ProductService productService;
@Override
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.alibaba.fastjson.JSONObject;
import com.rabbitmq.client.Channel;
... ... @@ -6,6 +6,7 @@ import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductStandardRelationService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ProductStandardRelation;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductStyleRelationService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.ProductStyleRelation;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.ProductService;
import com.yoho.search.consumer.service.base.ProductTimingService;
import com.yoho.search.consumer.service.logic.productIndex.StorageUpdateTimeLogicService;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.index.increment.otherIndex.RobotQuestionMqListener;
import com.yoho.search.consumer.service.logic.SalesCategoryLogicService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.SalesCategory;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.productIndex;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.tbl;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -8,6 +8,7 @@ import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.common.IYohoIndexService;
import com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.TblBrandService;
import com.yoho.search.core.es.model.ESBluk;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.tbl;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.index.increment.bulks.GlobalndexBulkService;
import com.yoho.search.consumer.service.base.TblProductService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.tbl;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.index.increment.bulks.GlobalndexBulkService;
import com.yoho.search.consumer.service.base.TblProductSkcService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.tbl;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -6,6 +6,7 @@ import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.index.increment.bulks.GlobalndexBulkService;
import com.yoho.search.consumer.service.base.TblProductSkuService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.tbl;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
... ... @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.index.increment.bulks.GlobalndexBulkService;
import com.yoho.search.consumer.service.base.TblProductService;
import com.yoho.search.consumer.service.base.TblSiteService;
... ...
package com.yoho.search.consumer.index.increment;
package com.yoho.search.consumer.index.increment.tbl;
import com.rabbitmq.client.Channel;
import com.yoho.error.event.SearchEvent;
import com.yoho.error.event.SearchLogsEvent;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
import com.yoho.search.consumer.index.increment.AbstractMqListener;
import com.yoho.search.consumer.service.base.TblSortService;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.dal.model.TblSort;
... ...
... ... @@ -95,17 +95,17 @@
<property name="WaitForTasksToCompleteOnShutdown" value="false" />
</bean>
<bean id="productMqListener0" class="com.yoho.search.consumer.index.increment.ProductMqListener"></bean>
<bean id="productMqListener1" class="com.yoho.search.consumer.index.increment.ProductMqListener"></bean>
<bean id="productMqListener2" class="com.yoho.search.consumer.index.increment.ProductMqListener"></bean>
<bean id="productMqListener3" class="com.yoho.search.consumer.index.increment.ProductMqListener"></bean>
<bean id="productMqListener4" class="com.yoho.search.consumer.index.increment.ProductMqListener"></bean>
<bean id="productMqListener0" class="com.yoho.search.consumer.index.increment.productIndex.ProductMqListener"></bean>
<bean id="productMqListener1" class="com.yoho.search.consumer.index.increment.productIndex.ProductMqListener"></bean>
<bean id="productMqListener2" class="com.yoho.search.consumer.index.increment.productIndex.ProductMqListener"></bean>
<bean id="productMqListener3" class="com.yoho.search.consumer.index.increment.productIndex.ProductMqListener"></bean>
<bean id="productMqListener4" class="com.yoho.search.consumer.index.increment.productIndex.ProductMqListener"></bean>
<bean id="productPriceMqListener0" class="com.yoho.search.consumer.index.increment.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener1" class="com.yoho.search.consumer.index.increment.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener2" class="com.yoho.search.consumer.index.increment.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener3" class="com.yoho.search.consumer.index.increment.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener4" class="com.yoho.search.consumer.index.increment.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener0" class="com.yoho.search.consumer.index.increment.productIndex.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener1" class="com.yoho.search.consumer.index.increment.productIndex.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener2" class="com.yoho.search.consumer.index.increment.productIndex.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener3" class="com.yoho.search.consumer.index.increment.productIndex.ProductPriceMqListener"></bean>
<bean id="productPriceMqListener4" class="com.yoho.search.consumer.index.increment.productIndex.ProductPriceMqListener"></bean>
<rabbit:listener-container connection-factory="connectionFactory" task-executor="taskExecutor" concurrency="1">
<rabbit:listener queue-names="data_update_channel_esworddef" ref="esWordDefMqListener" />
... ...