当前位置: 首页 > news >正文

用word怎么做首页网站北京网站设计入门

用word怎么做首页网站,北京网站设计入门,公司网站建设费入哪个科目,ps做电商网站图标当我们使用Thrift 通信的时候#xff0c;服务端有时候需要注册多个类#xff0c;去实现通信#xff0c;这时候我们就不能再使用单一Processor的方式#xff0c;就要使用多个Processor#xff0c;那么如何去实现呢#xff1f; 多个Process 服务端 public static void m…当我们使用Thrift 通信的时候服务端有时候需要注册多个类去实现通信这时候我们就不能再使用单一Processor的方式就要使用多个Processor那么如何去实现呢 多个Process 服务端 public static void main(String[] args) {try {AImpl aService new AImpl();BImpl bServicenew BImpl();TMultiplexedProcessor multiplexedProcessor new TMultiplexedProcessor();AService.ProcessorAImpl aProcessor new AService.Processor(aService);multiplexedProcessor.registerProcessor(aService, aProcessor);BService.ProcessorBImpl bProcessor new BService.Processor(bService);multiplexedProcessor.registerProcessor(bService, bProcessor);TServerSocket serverTransport new TServerSocket(80000);TThreadPoolServer.Args serverArgs new TThreadPoolServer.Args(serverTransport);serverArgs.processor(multiplexedProcessor);TServer server new TThreadPoolServer(serverArgs);System.out.println(Starting the multi-processor server...);server.serve();} catch (Exception e) {e.printStackTrace();System.out.println(e.getMessage());}}客户端 public static void main(String[] args) throws TException {TTransport transport new TSocket(localhost, 80000);transport.open();// AServiceTMultiplexedProtocol multiplexedProtocol new TMultiplexedProtocol(new TBinaryProtocol(transport), aService);AService.Client aClient new AService.Client(multiplexedProtocol);aClient.method();System.out.println(Calling AService method...);// BServicemultiplexedProtocol new TMultiplexedProtocol(new TBinaryProtocol(transport), bService);BService.Client bClient new BService.Client(multiplexedProtocol);BClient.method();System.out.println(Calling SystemLogService method...);transport.close();}这个Demo中我们要用到两个接口类那么A和B使用TMultiplexedProcessor 去注册两个Service启动服务。 单个Process 服务端 AImpl aService new AImpl();TServerSocket serverSocket new TServerSocket(90000);AService.ProcessorAImpl aProcessor new AService.Processor(aService);TThreadPoolServer.Args serverArg new TThreadPoolServer.Args(serverSocket);serverArg.processor(aProcessor);TThreadPoolServer server new TThreadPoolServer(serverArg);server.serve();客户端 TTransport transport new TSocket(localhost, 90000);transport.open();TBinaryProtocol protocol new TBinaryProtocol(transport);AService.Client aClient new AService.Client(protocol);aclient.method();附单个process的方式。
http://www.hkea.cn/news/14554342/

相关文章:

  • 最新网站建设个人怎么做自媒体
  • 主机屋免费网站空间100个农村电商平台
  • 网站建立公司四川陕西做网站的公司地址
  • 网站建设 58同城莱芜网络推广公司提供
  • vs2010网站设计用整张图片做背景餐饮管理系统下载
  • 网站运营与维护是什么意思河南企起网站建设
  • 长沙招聘网站制作114网站制作
  • 蓬莱市住房和规划建设管理局网站中国现任领导名单简介
  • 某些网站dns解析失败北京信息发布平台
  • 网络宣传网站建设价格word 发布到wordpress
  • 武鸣网站建设体育西网站开发方案
  • 做网站如何引用头部姓氏logo免费设计在线生成
  • 餐饮网站 设计网站建设需求调查表
  • 网站建设流程心得wordpress 上标 小圆1
  • wordpress高级文章编辑器某企业网站的分析优化与推广
  • 做58同城网站需要多少钱服务器安全防护
  • php做的网站如何盈利网站搭建需要什么技术
  • 婚庆公司网站源码南昌装修网站建设
  • 莱山做网站的公司网站建设 超薄网络
  • 深圳定制建站网站建设学校网站做等级保护
  • 泉州 网站制作百度一下app下载安装
  • dede响应式网站模板下载大型网站建设兴田德润简介
  • 重庆市建设工程节能中心网站深圳罗湖企业网站优化价格
  • 做网站推广大概需要多少钱店面设计餐饮风格
  • 淘宝客网站程序模板杭州建设信用网网站
  • 杭州网站建设 乐云践新专家东莞寮步网站建设网络公司
  • 花都定制型网站建设常见的网站名称有哪些
  • 净化工程 技术支持 东莞网站建设约么同城实时定位搜索引擎
  • 推广网站有效的免费方法怎么设置自己做的网站
  • 做最好最全的命理网站南京科技网站设计费用