首页> 外国专利> Method and system for providing a single object instance per client-server session

Method and system for providing a single object instance per client-server session

机译:用于每个客户端-服务器会话提供单个对象实例的方法和系统

摘要

A session singleton object, design pattern, and method for providing computer program code that defines a class for instantiating a session singleton object are disclosed. The class includes a constructor for instantiating the session singleton object, and an access method for accessing the session singleton object. The access method has an input parameter, which is used to locate a session, logic for determining whether the session singleton object exists, logic for creating the session singleton object, and associating the session singleton object with the session only when the session singleton object does not exist, and logic for returning the session singleton to a caller of the access method. Executing the code in a server that is coupled to clients in respective communication sessions results in instantiating one and only one instance of the session singleton object for each of the sessions communicating with the server.
机译:公开了会话单例对象,设计模式以及用于提供定义用于实例化会话单例对象的类的计算机程序代码的方法。该类包括用于实例化会话单例对象的构造函数,以及用于访问会话单例对象的访问方法。访问方法具有输入参数(用于定位会话),用于确定会话单例对象是否存在的逻辑,用于创建会话单例对象的逻辑以及仅在会话单例对象确实存在时将会话单例对象与会话相关联的逻辑。不存在的逻辑,以及用于将会话单例返回给访问方法的调用者的逻辑。在与各个通信会话中的客户端耦合的服务器中执行代码导致针对与服务器通信的每个会话实例化会话单例对象的一个​​且仅一个实例。

著录项

  • 公开/公告号US7107575B1

    专利类型

  • 公开/公告日2006-09-12

    原文格式PDF

  • 申请/专利权人 YISHAY MOR;KFIR WALDMAN;

    申请/专利号US20020225903

  • 发明设计人 YISHAY MOR;KFIR WALDMAN;

    申请日2002-08-21

  • 分类号G06F9/44;

  • 国家 US

  • 入库时间 2022-08-21 21:44:24

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号