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

小型企业网站建设毕业论文百度开户公司

小型企业网站建设毕业论文,百度开户公司,龙华做网站多少钱,南山附近公司做网站建设多少钱一、引入 访问 FB:代理服务器 二、代理模式 aka Surrogate 2.1 Intent 意图 Provide a surrogate (代理) or placeholder for another object to control access to it. 为另一个对象提供一个代理或占位符,以控制对它的访问。代理模式给某一个对象提…

一、引入

  • 访问 FB:代理服务器
    在这里插入图片描述

二、代理模式

aka Surrogate

2.1 Intent 意图

  • Provide a surrogate (代理) or placeholder for another object to control access to it. 为另一个对象提供一个代理或占位符,以控制对它的访问。
  • 代理模式给某一个对象提供一个代理对象,并由代理对象控制对原对象的引用

2.2 Motivation 动机

One reason for controlling access to an object is to defer the full cost of its creation and initialization until we actually need to use it.
控制对对象的访问的一个原因是要延迟其创建和初始化的全部成本,直到我们实际需要使用它为止。即只在必要时生成开销大的对象。
Example:
An image proxy creates the real image only when the document editor asks it to display itself. The proxy forwards subsequent requests directly to the image.
只有在文档编辑器要求其显示图像时,图像代理才会创建真实的图像,代理会将后续请求直接转发到图像。

在这里插入图片描述

2.2 Applicability 适用性

  • A remote proxy provides a local representative for an object in a different address space. 远程代理为一个不同地址空间中的对象提供了一个本地代表.

  • A virtual proxy creates expensive objects on demand. 虚拟代理在必要时创建开销大的对象.

  • A protection proxy controls access to the original object. 保护代理可控制对原始对象的访问.

  • A smart reference is a replacement for a bare pointer that performs additional actions when an object is accessed. 在访问对象时,可以执行其他操作的智能引用是裸指针的替代品。

    • counting the number of references to the real object so that it can be freed automatically when there are no more references (smart pointers).
    • loading a persistent object into memory when it’s first referenced.
    • checking that the real object is locked before it’s accessed to ensure that no other object can change it.

2.3 类图

在这里插入图片描述

2.4 Consequences 重要性

  • 远程代理:隐藏对象位于不同地址空间中的事实
  • 虚拟代理:优化,仅需要时才创建对象
  • 保护代理 & 智能引用:提供额外功能,如访问控制
  • Copy-on-write 写时复制:Copying a large and complicated object can be an expensive operation. If the copy is never modified, then there’s no need to incur this cost. By using a proxy to postpone the copying process, we ensure that we pay the price of copying the object only if it’s modified.

2.5 应用实例:糖果机

http://www.tj-hxxt.cn/news/34243.html

相关文章:

  • 浙江网站备案查询河北seo技术培训
  • 做网站跟app谷歌浏览器下载电脑版
  • 大连城市建设网站windows优化大师要会员
  • 网站怎么做json数据库做优化的网站
  • wordpress ua标识安卓seo优化有哪些
  • 网站过程建设品牌营销案例分析
  • html 网站 模板宁波技术好的企业网站制作
  • 手机网站建设多钱如何做地推推广技巧
  • 怎么登录手机wordpressseo技术学院
  • 怎么做网站反向链接五行seo博客
  • 学校网站管理方案武汉seo首页优化技巧
  • 有没有建筑学做区位分析的网站seo关键词排名怎么提升
  • 网店营销推广搜索引擎优化的概念
  • 苏州网站建设风兰国际新闻今日头条
  • 个人建网站一般多少钱?免费网站统计
  • 人大网站建设成就谷歌seo推广
  • 台湾虾皮网站怎么做怎么做营销推广
  • 域名注册好怎么建设网站如何开发软件app
  • visual studio 2010 网站开发免费建网站
  • 阜阳做网站多少钱我想在百度上做广告怎么做
  • 朋友让你做网站如何拒绝成都有实力的seo团队
  • 门户站点是什么网站外包公司有哪些
  • 屏显的企业网站应该怎么做中国最新疫情最新消息
  • 中国建设银行网站的发展郑州seo推广优化
  • 网站开发买什么书搜索引擎关键词seo优化公司
  • python做网站点登入没反映怎么开网站平台挣钱
  • 自己做网站都需要什么长沙网络推广小公司
  • 网站建设qq沈阳关键词优化费用
  • 更改网站备案负责人小程序怎么引流推广
  • wordpress 珠宝站长工具seo综合查询是什么