通过telnet调用dubbo进行调试

建立连接

通过provider ip 和暴露端口 进行连接

liqiangdeMacBook-Pro:~ liqiang$ telnet 192.168.1.1 23888
Trying 192.168.10.23...
Connected to 192.168.10.23.
Escape character is '^]'.

dubbo>

查看有哪些服务

dubbo>ls
com.biz.soa.service.promotion.frontend.SoaZeroBuyFrontService
com.biz.soa.service.promotion.frontend.SoaNgoodsFrontService
com.biz.soa.service.promotion.backend.zerobuy.SoaZeroBuyService
com.biz.soa.service.poswriteoff.PosWriteOffArchivesService
com.biz.soa.service.promotion.backend.game.GameRewardExchangeLogDubboService
com.biz.soa.service.promotion.backend.game.GameUserStateDubboService
com.biz.soa.service.promotion.backend.OfflineExtend.PromotionOfflineService
com.biz.soa.service.modalform.backend.ModalFormBackService
com.biz.soa.service.seckill.backend.SoaSeckillManageService
com.biz.soa.service.promotion.backend.presale.SoaPromotionPreSaleService
com.biz.soa.service.promotion.backend.game.GameRewardDubboService
com.biz.soa.service.promotion.frontend.FirstOrderFrontPromotionService
com.biz.soa.service.promotion.frontend.homeprize.SoaHomePrizeFrontendService
com.biz.soa.service.promotion.frontend.GiftOrderFrontPromotionService
com.biz.soa.service.promotion.backend.snatchtreasure.SoaSnatchTreasureBackendService
com.biz.soa.service.promotion.walletcoupon.SoaWalletRechargeCouponBackendService
com.biz.soa.service.promotion.backend.RedemptionProductService
com.biz.soa.service.modalform.frontend.ModalFormService
com.biz.soa.service.alcoholknowledge.AlcoholKnowledgeManagerService
com.biz.soa.service.promotion.frontend.LimitProductFrontPromotionService
com.biz.soa.service.modalform.frontend.NewUserCheckService
com.biz.soa.service.activityport.SoaActivityPortSubmitService
com.biz.soa.service.promotion.frontend.SoaCollectCardFrontService
com.biz.soa.service.pagepromotion.frontend.PagePromotionService
com.biz.soa.service.alcoholknowledge.AlcoholCalendarService
com.biz.soa.service.activity.frontend.SoaActivityFontService
com.biz.soa.service.alcoholknowledge.UserFilterCardService
com.biz.soa.service.promotion.backend.game.GameSubjectDubboService
com.biz.soa.service.promotion.frontend.SoaPromotionUserService
com.biz.soa.service.promotion.frontend.snatchtreasure.SoaSnatchTreasureFrontendService
com.biz.soa.service.promotion.backend.wallet.SoaWalletRichTextService
com.biz.soa.service.promotion.backend.homeprize.SoaHomePrizeBackendService
com.biz.soa.service.promotion.backend.game.GameShareDubboService
com.biz.soa.service.promotion.walletrebate.SoaWalletRebateService
com.biz.soa.service.promotion.backend.Gift4Order2PromotionService
com.biz.soa.service.promotion.backend.wineCard.SoaOpenWalletRichTextService
com.biz.soa.service.newcouponpackage.backend.SoaNewCouponPackageManageService
com.biz.soa.service.activityport.SoaActivityPortService
com.biz.soa.service.alcoholknowledge.AlcoholKnowledgeFileService
com.biz.soa.service.promotion.backend.game.GameSubjectItemDubboService
com.biz.soa.service.promotion.walletcoupon.SoaWalletRechargeCouponFrontService
com.biz.soa.service.promotion.backend.collectcard.SoaCollectCardService
com.biz.soa.service.promotion.frontend.SoaHtmlStaticParameterFrontService
com.biz.soa.service.promotion.backend.FirstOrderPromotionService
com.biz.soa.service.promotion.backend.wineCard.SoaWineCardPromotionService
com.biz.soa.service.promotion.backend.SoaLuckDrawService
com.biz.soa.service.promotion.frontend.SoaPreSaleFrontService
com.biz.soa.service.promotion.frontend.SoaLuckDrawFrontService
com.biz.soa.service.newcouponpackage.frontend.SoaNewCouponPackageService
com.biz.soa.service.promotion.frontend.WalletRebateFrontService
com.biz.soa.service.promotion.frontend.SoaFullCutFrontService
com.biz.soa.service.delivercoupon.DeliverCouponDubboService
com.biz.soa.service.promotion.frontend.PromotionCacheService
com.biz.soa.service.alcoholknowledge.ContentLibraryService
com.biz.soa.service.promotion.backend.game.GameRuntimeDubboService
com.biz.soa.service.promotion.backend.collage.SoaPromotionCollageService
com.biz.soa.service.promotion.backend.LimitProductPromotionService
com.biz.soa.service.promotion.backend.fullcut.SoaPromotionFullCutService
com.biz.soa.service.promotion.backend.SoaHtmlStaticParameterService
com.biz.soa.service.promotion.frontend.OfflinePromotionFrontService
com.biz.soa.service.pagepromotion.backend.PagePromotionService
com.biz.soa.service.alcoholknowledge.AdvertisementLibraryService
com.biz.soa.service.activity.backend.SoaActivityManageService
com.biz.soa.service.promotion.backend.game.GameBaseConfigDubboService
com.biz.soa.service.promotion.frontend.PromotionService
com.biz.soa.service.seckill.frontend.KhSoaSeckillFrontService
com.biz.soa.service.promotion.frontend.SoaCollageFrontService
com.biz.soa.service.seckill.frontend.SoaSeckillFrontService
com.biz.soa.service.datrepair.DataRepairService
com.biz.soa.service.promotion.backend.SoaNgoodsBackendService

查看服务的详细配置

dubbo>ls -l
com.biz.soa.service.promotion.frontend.SoaZeroBuyFrontService -> dubbo://192.168.0.1:23888/com.biz.soa.service.promotion.frontend.SoaZeroBuyFrontService?anyhost=true&application=soa-promotion-provider&bind.ip=192.168.10.23&bind.port=23888&default.delay=-1&default.retries=0&default.service.filter=-exception,exceptionFilterProxy&delay=-1&dispatcher=message&dubbo=promotion&generic=false&interface=com.biz.soa.service.promotion.frontend.SoaZeroBuyFrontService&logger=slf4j&methods=validateAndSubmitZeroBuyByOrder,findZeroBuyForProductDetail,findZeroBuyProductIds,findZeroBuyOrderPromotion,cancelZeroBuyOrder&pid=13388&revision=promotion&side=provider&threadpool=fixed&threads=500&timestamp=1607004692441
com.biz.soa.service.promotion.frontend.SoaNgoodsFrontService -> dubbo://192.168.0.1:23888/com.biz.soa.service.promotion.frontend.SoaNgoodsFrontService?anyhost=true&application=soa-promotion-provider&bind.ip=192.168.10.23&bind.port=23888&default.delay=-1&default.retries=0&default.service.filter=-exception,exceptionFilterProxy&delay=-1&dispatcher=message&dubbo=promotion&generic=false&interface=com.biz.soa.service.promotion.frontend.SoaNgoodsFrontService&logger=slf4j&methods=findNoodsForOrderDetail,promotionInfo4ProductDetail,findOne,promotionInfo4ShopCart,cancelOrderForNoods,submitOrderForNoods,collectBills,promotion4ProductList&pid=13388&revision=promotion&side=provider&threadpool=fixed&threads=500&timestamp=1607004692402
com.biz.soa.service.promotion.backend.zerobuy.SoaZeroBuyService -> dubbo://192.168.0.1:23888/com.biz.soa.service.promotion.backend.zerobuy.SoaZeroBuyService?anyhost=true&application=soa-promotion-provider&bind.ip=192.168.10.23&bind.port=23888&default.delay=-1&default.retries=0&default.service.filter=-exception,exceptionFilterProxy&delay=-1&dispatcher=message&dubbo=promotion&generic=false&interface=com.biz.soa.service.promotion.backend.zerobuy.SoaZeroBuyService&logger=slf4j&methods=clearEndZeroBuy,queryOrders,getAll,addOrUpdate,getDetail,enable,query&pid=13388&revision=promotion&side=provider&threadpool=fixed&threads=500&timestamp=1607004692444
com.biz.soa.service.poswriteoff.PosWriteOffArchivesService -> dubbo://192.168.0.1:23888/com.biz.soa.service.poswriteoff.PosWriteOffArchivesService?anyhost=true&application=soa-promotion-provider&bind.ip=192.168.10.23&bind.port=23888&default.delay=-1&default.retries=0&default.service.filter=-exception,exceptionFilterProxy&delay=-1&dispatcher=message&dubbo=promotion&generic=false&interface=com.biz.soa.service.poswriteoff.PosWriteOffArchivesService&logger=slf4j&methods=save,findAll&pid=13388&revision=promotion&side=provider&threadpool=fixed&threads=500&timestamp=1607004692402
com.biz.soa.service.promotion.backend.game.GameRewardExchangeLogDubboService -> dubbo://192.168.0.1:23888/com.biz.soa.service.promotion.backend.game.GameRewardExchangeLogDubboService?anyhost=true&application=soa-promotion-provider&bind.ip=192.168.10.23&bind.port=23888&default.delay=-1&default.retries=0&default.service.filter=-exception,exceptionFilterProxy&delay=-1&dispatcher=message&dubbo=promotion&generic=false&interface=com.biz.soa.service.promotion.backend.game.GameRewardExchangeLogDubboService&logger=slf4j&methods=saveLog,delById,getByPage&pid=13388&revision=promotion&side=provider&threadpool=fixed&threads=500&timestamp=1607004692493

查看具体服务暴露的方法

dubbo>ls -l com.biz.soa.service.promotion.frontend.PromotionService
com.biz.soa.vo.promotion.frontend.OrderSettlepageRespVo findFirstEnabledRedmption(com.biz.soa.vo.promotion.frontend.OrderSettlepageRequestVo)
java.util.Collection filterSpecialPromotion4Depot(com.biz.soa.vo.promotion.frontend.SpecialOrderPromotionFilterVo)
java.util.Set filterStockAndSaleAreaByVendorOrDepot(com.biz.soa.vo.promotion.FilterStockAndSaleStatusByVendorOrDepotReqVo)
com.biz.soa.vo.promotion.frontend.PromotionProductLimitFrontVo couldShippingLimitProduct(java.lang.Long,java.lang.Long,java.lang.String,com.biz.soa.enums.promotion.OrderType,com.biz.soa.enums.promotion.ClientLimit,java.lang.Long)
java.util.List getALLMergeProvinceIds()
java.util.List promotionInfo4ProductDetail(com.biz.soa.vo.promotion.ProductGetPromotionReqVo)
com.biz.soa.vo.promotion.frontend.FullCutProductListShowRespVo thirdFullCut(com.biz.soa.vo.promotion.frontend.FullCutPrductListDefaultReqVo)
java.util.Map promotion4ProductList(com.biz.soa.vo.promotion.ProductGetPromotionReqVo)
java.util.List promotionInfo4ShopCart(com.biz.soa.vo.promotion.frontend.NgoodsShopCartReqVo)
java.util.Map promotionInfo4ShopCart(java.util.List)
java.util.List findProductByPromotion(com.biz.soa.vo.promotion.ProductGetPromotionReqVo)
com.biz.soa.vo.promotion.frontend.SoaUpdatePromotionGift4OrderVo findOnePromotion(java.lang.Long)
java.lang.Integer addCheckShopCart(java.lang.Long,java.lang.Integer,java.lang.Long,java.lang.String,com.biz.soa.enums.promotion.OrderType,com.biz.soa.enums.promotion.ClientLimit,java.lang.Long)
org.apache.commons.lang3.tuple.Pair queryShopcartPromotion(com.biz.soa.vo.promotion.frontend.ShopCartQueryPromotionReqVo)
java.lang.Boolean submitPromotion(com.biz.soa.vo.promotion.frontend.SubmitPromotionReqVo)
void cancelPromotion(java.util.List,java.util.List,java.lang.Long,java.lang.Long,java.util.List,java.lang.String)
java.lang.Integer checkLimitProduct(java.lang.Long,java.lang.Long,java.lang.String,com.biz.soa.enums.promotion.OrderType,com.biz.soa.enums.promotion.ClientLimit,java.lang.Long)
java.util.Map checkLimitProducts(com.biz.soa.vo.promotion.frontend.LimitProductQuantityReqVo)
void dealFirstOrder(java.lang.Long,java.lang.Long)
java.util.Map getActivityUserCanBuyNumber(com.biz.soa.vo.promotion.frontend.GetActivityUserCanBuyNumberReqVo)
com.biz.soa.vo.promotion.frontend.Promotion4NBusinessVo findNgoodsById(java.lang.Long)
com.biz.soa.vo.promotion.req.PromotionCreatorTypeVo findPromotionCreatorType(com.biz.soa.vo.promotion.req.PromotionCreatorTypeVo)
void syncShareRegisterLog(com.biz.soa.vo.promotion.frontend.share.SoaShareFinishOrderVo,com.biz.soa.vo.user.risk.aliyunVo.CouponEventReq)
com.biz.soa.vo.promotion.frontend.IndexPromotionRespVo indexPromotion(com.biz.soa.vo.promotion.frontend.IndexPromotionReqVo)
com.biz.soa.vo.promotion.frontend.OrderSettlepageRespVo findPromotionByVenOrder(com.biz.soa.vo.promotion.frontend.OrderSettlepageRequestVo)
void submitVendorPromotion(com.biz.soa.vo.promotion.VendorSubmitPromotionReqVo)
java.util.List findPromotionInfosByIds(com.biz.soa.vo.promotion.PromotionInfoReqVo)
java.util.List getMatchMergeProvinceIds(java.util.List)
java.util.List findPromotion4Product(com.biz.soa.vo.promotion.frontend.ProductQueryVo,com.biz.soa.enums.promotion.ClientLimit,java.lang.Long,java.lang.Long)
java.util.List findPromotion4ProductToNewVer(com.biz.soa.vo.promotion.frontend.ProductQueryVo,com.biz.soa.enums.promotion.ClientLimit,java.lang.Long,java.lang.Long)
java.util.List findPromotion4ProductToVendor(com.biz.soa.vo.promotion.frontend.PromotionProductDetailReqVo)
java.lang.Long getShareIdByUserId(java.lang.Long)
java.util.Map filterUselessPromotions(java.util.Map)
void operatVendor(java.lang.Long,java.lang.Boolean)

显示服务端口列表

dubbo>ps
23888
dubbo>

显示服务地址列表

 

dubbo>ps -l
dubbo://192.168.10.23:23888
dubbo>

显示端口的连接列表

dubbo>ps 23888
/192.168.0.1:55766

监控服务调用情况

trace XxxService: 跟踪 1 次服务任意方法的调用情况
trace XxxService 10: 跟踪 10 次服务任意方法的调用情况
trace XxxService xxxMethod: 跟踪 1 次服务方法的调用情况
trace XxxService xxxMethod 10: 跟踪 10 次服务方法的调用情况

 

dubbo>trace com.jsy.order.api.OrderTrialFacade

/18.16.202.169:2732 -> com.jsy.order.api.OrderTrialFacade.getOrderListByTrial([["օ·¼","²㋔"]]) -> {"msg":"³ɹ¦","data":[{"colligateRate":0.15,"expireTime":"2019-03-21 17:45:24","issue":3,"loanNo":"JSY20190315000001","loanStatus":"6","paymentTypeDesc":"ЈϢº󱼢,"loanStatusDesc":"ʺ³ɻ¹¿»®","loanAmount":800000.0,"customerName":"օɽ","loansTime":"2019-03-21 17:45:24","paymentType":"10","overdueIssue":0},{"colligateRate":0.35,"expireTime":"2019-03-21 17:45:24","issue":12,"loanNo":"JSY20190315000002","loanStatus":"6","paymentTypeDesc":"¿쵻(Ϟ½»ӗ)","loanStatusDesc":"ʺ³ɻ¹¿»®","loanAmount":500000.0,"customerName":"n̄","loansTime":"2019-03-21 17:45:24","paymentType":"9","overdueIssue":8}],"status":"10000"}
elapsed: 0 ms.

调用一次服务传入对象

invoke com.biz.soa.service.promotion.frontend.PromotionService.findPromotionCreatorType({"class":"com.biz.soa.vo.promotion.req.PromotionCreatorTypeVo","promotionViewType":"collageFailed"})

 

posted @ 2021-03-17 13:31  意犹未尽  阅读(377)  评论(0编辑  收藏  举报