Is context global or there may be one context for each scope or for each application?
There's a global context and one context for each application.
How to implement security checking?
First put user data in IClient/IConnection when first connect to server.
For method call, override IScopeHandler.serviceCall(IConnection, IServiceCall) or check at method entry point.
For streaming, implement IStreamPlaybackSecurity and IStreamPublishSecurity to check security.
MBean in Red5?
Why ApplicationAdapter's method can be called by client?
How those key components fixed together? (client, client registry, handler, scope, context, application adapter)
IAttributeStore a map to put/get attribute.
IEvent, IEventDispatcher, IEventHandler, IEventListener
Lots of RTMP package implements IEvent but the dispatcher, handler and listener do not have much usage, they can be ignored.
ICoreObject implements IAttributeStore and IEvent related interfaces.
IPersistenceStore, delegated storage for IPersistable, may be file or ram or other.
IPersistable, knows how to serialize and deserialize itself, also contains a path and name so that they can be identified.
It's not supposed to be implemented by other program because normally you can't retrieve a correct IPersistenceStore, unless hardcoded to get it from other internal objects like IScope.
IBasicScope mainly implements ICoreObject and IPersistable, and provides methods to form a tree style structure (Note that it assumes every node has a parent but not necessary to have a child).
IServiceHandlerProvider provide methods to register serviceHandler, note that serviceHandler is just plain java object.
ResourcePatternResolver a spring interface that provide the ability to load resource from somewhere.
IScope
Implements IBasicScope, ResourcePatternResolver and IServiceHandlerProvider
Manage IConnection and IClient, provide methods to add/remove/find connections or clients attached to current scope, also the connect(IConnection, Object[]) method choose whether or not to accept given connection.
Add/remove/find child scope, note that IScope has the type (which defined in IBasicScope) as "scope".
Retrieve IContext and IScopeStatistics.
Manage a IScopeHandler, it will delegate some method calls to IScopeHandler, IScopeHandler aslo get notified for certain events.
IScopeHandler
Join/leave related to IClient
Connection/disconnection related to IConnection
start/stop and above methods related to IScope
AddChildScope/revmoeChildScope related to IBasicScope
IGlobalScope extends IScope and provide methods to get retrieve IServer and also register (initialize) itself
分享到:
相关推荐
"RHCSA/RHCE Red Hat Linux Certification Study Guide, Seventh Edition"知识点总结 本书是Red Hat Linux认证考试的学习指导手册,第七版,涵盖了RHCSA和RHCE考试的所有内容。下面是本书的知识点总结: 一、Red ...
Sybex - RHCE Red Hat Certified Engineer Study Guide
3. **SPNEGO协议**:利用RFC2478定义的SPNEGO协议,允许Web应用服务器在用户会话中自动进行身份验证,无需用户提供额外的凭据。 #### 系统配置步骤 案例详细介绍了实现上述集成所需的具体步骤,包括但不限于: - ...
Red Hat Linux9普通版.pdf
RHCE Red Hat Certified Engineer Linux Study Guide Exam RH302 4 ED 2004
Like many in the Linux community, you’ve probably heard of the Red Hat Certified Engineer (RHCE) program and the related RHCE exam, both of which were created by Red Hat, Inc. You may have heard that...
RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302), Fifth Edition byMichael Jang McGraw-Hill/Osborne 2007 (896 pages) ISBN:9780072264548 With hundreds of practice questions and hands...
McGraw.Hill.RHCE.Red.Hat.Certified.Engineer.Linux.Study.Guide.Exam.RH302.5th.Edition.Jun.2007.part2.rar
McGraw.Hill.RHCE.Red.Hat.Certified.Engineer.Linux.Study.Guide.Exam.RH302.fifth.Edition.Jun.2007.part1.rar
- **链式操作**: jQuery的对象返回总是自身,这使得多个方法调用可以连在一起,如`$("#myDiv").css("color", "red").fadeIn(500);`。 - **动画效果**: jQuery提供了丰富的动画效果,如`fadeIn()`, `fadeOut()`, `...
已经编辑好的直接打印版PDF文件。 整篇文档由原PDF版本的889页缩减到463页,主体内容完整无删减。 单数页和双数页页边距进行了调整,提供正反面打印后的装订边距。 去掉了原版PDF中最后多余的索引部分。...
rhcsa/rhce7
《RHCE Linux Study Guide 经典教材》是针对Red Hat Certified Engineer(RHCE)认证的一份详尽学习指南。这份教材旨在帮助考生掌握Linux系统管理的核心技能,为参加RHCE考试做好充分准备。RHCE认证是Linux领域内极...
综上所述,"css study"这个资料包将引导你深入了解CSS,从基础概念到高级布局技巧,再到现代CSS3特性的应用,助你在网页设计之路上不断精进。通过学习和实践,你可以创建出美观且功能强大的网页。
This study guide will help you to prepare for Linux/Unix Exam RH300, Red Hat Certified Engineer. Exam topics include Hardware and Installation, Configuration and Administration, Kernel Services, ...
4. **链式操作**: jQuery方法返回的是jQuery对象本身,所以可以连续调用多个方法,如`$('div').css('color', 'red').fadeIn(500)`。 ### 二、jQuery动画 1. **基本动画**: `fadeIn()`, `fadeOut()`, `slideToggle...
A light purplish red sapphire is heat treated in an airtight crucible. The sample changes little in color after receiving heat treatment at 1100°C, but turns to light blue and blue after being ...
",引导读者理解Python的不同版本(如Python 2与Python 3的区别),以及选择适合自己需求的版本的重要性。接着,章节详细讲解了如何在Windows、Mac OS X、Mac OS 9、Red Hat Linux以及Debian GNU/Linux等操作系统上...