12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

可 移 植 接 收 器 和 信 息 接 口java:C++:Dorg.omg.PortableInterceptor.ORBInitializerClass.com.abc.Monitoring.MonitoringService MyApp#include "PortableInterceptor_c.hh"class MonitoringService: public PortableInterceptor::ORBInitializer{void pre_init(ORBInitInfo_ptr _info){// 实 例 化 服 务 的 接 收 器 。Interceptor* interceptor = new MonitoringInterceptor();// 注 册 Monitoring 的 接 收 器 。_info->add_client_request_interceptor(interceptor);}void post_init(ORBInitInfo_ptr _info){// 这 个 init 点 不 是 必 要 的 。}};MonitoringService * monitoring_service = new MonitoringService();PortableInterceptor::register_orb_initializer(monitoring_service);<strong>VisiBroker</strong> <strong>Edition</strong> 朝 向 可 移 植 接 收 器 的 扩 展POA 作 用 域 服 务 器 请 求 接 收 器Java:C++:由 OMG 指 定 的 可 移 植 接 收 器 具 有 全 局 作 用 域 ,<strong>VisiBroker</strong> <strong>Edition</strong> 已 通 过 增 加一 个 新 的 模 块 调 用 PortableInterceptorExt 定 义 了 “POA 作 用 域 服 务 器 请 求 接 收器 ,” 这 是 一 个 公 用 的 到 可 移 植 接 收 器 的 扩 展 模 块 。 这 种 新 的 模 块 具 有 从PortableInterceptor::IORInfo 继 承 而 来 的 一 个 本 地 接 口 IORInfoExt, 该 接 口 提 供额 外 的 安 装 POA 作 用 域 服 务 器 请 求 接 收 器 的 方 法 。package com.inprise.vbroker.PortableInterceptor;public interface IORInfoExt extendsorg.omg.CORBA.LocalInterface,org.omg.PortableInterceptor.IORInfo,com.inprise.vbroker.PortableInterceptor.IORInfoExtOperations,org.omg.CORBA.portable.IDLEntity{public void add_server_request_interceptor(ServerRequestInterceptorinterceptor)throws DuplicateName;public java.lang.String[] full_poa_name();}IORInfoExt 类 :#include "PortableInterceptorExt_c.hh"class IORInfoExt: public PortableInterceptor::IORInfo使 用 可 移 植 接 收 器 20-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!