网站大量收购独家精品文档,联系QQ:2885784924

Openfire源码-byjiyuqi教程.docx

  1. 1、本文档共27页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Openfire源码-byjiyuqi教程

启动流程 Socket接口 Socket通信使用Mina框架实现,是XMPP协议的处理入口,具体为: 消息接收后由不同的节处理器处理: StanzaHandler基础消息类型,之后进行消息路由: 最后通过路由表进行路由: Http接口 Http接口用于Web端的管理以及Web客户端的通信,使用jetty实现。 通过XMPServer启动ConectionManager来管理链接启动,包括SSL,HTTP,TCP等。 消息处理流程 消息发送 消息的发送通过NIOConnection.deliver(Packet packet)实现。 模块功能列表 启动模块 RoutingTableImpl /** * Routing table that stores routes to client sessions, outgoing server sessions * and components. As soon as a user authenticates with the server its client session * will be added to the routing table. Whenever the client session becomes available * or unavailable the routing table will be updated too.p * * When running inside of a cluster the routing table will also keep references to routes * hosted in other cluster nodes. A {@link RemotePacketRouter} will be use to route packets * to routes hosted in other cluster nodes.p * * Failure to route a packet will end up sending {@link IQRouter#routingFailed(JID, Packet)}, * {@link MessageRouter#routingFailed(JID, Packet)} or {@link PresenceRouter#routingFailed(JID, Packet)} * depending on the packet type that tried to be sent. * * @author Gaston Dombiak */ AuditManager /** * Manages and directs server message auditing behavior. Turning on * all auditing options can produce copious amounts of data and * significantly slow the server as it saves the data to persistent storage.p * * Auditing currently saves audit data to a raw XML file * which can later be processed and mined for information. * * @author Iain Shigeoka */ RostManager /** * A simple service that allows components to retrieve a roster based solely on the ID * of the owner. Users have convenience methods for obtaining a roster associated with * the owner. However there are many components that need to retrieve the roster * based solely on the generic ID owner key. This interface defines a service that can * do that. This allows classes that generically manage resource for resource owners * (such as presence updates) to generically of

文档评论(0)

dajuhyy + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档