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.

接 口 引 用返 回 的 引 用 被 用 于 调 用 connect_push_consumer ( 参 见 第 15-26 页"ProxyPushConsumer") 或 onnect_pull_consumer 方 法 ( 参 见 第 15-24 页"EventLibrary (Java) "。SupplierAdmin这 个 接 口 被 提 供 者 应 用 用 来 取 得 代 理 接 收 者 对 象 。 这 是 连 接 提 供 者 应 用 到EventChannel 的 第 二 个 步 骤 。module CosEventChannelAdmin {interface SupplierAdmin {ProxyPushConsumer obtain_push_consumer();ProxyPullConsumer obtain_pull_consumer();};};如 果 提 供 者 应 用 是 使 用 推 式 模 型 实 现 的 , 则 调 用 obtain_push_consumer 方 法 。 如 果应 用 是 用 拉 式 模 型 实 现 的 , 则 调 用 obtain_pull_consumer 方 法 。返 回 的 引 用 用 于 调 用 connect_push_supplier ( 参 见 以 下 第 15-27 页"ProxyPushSupplier", 或 connect_pull_supplier 方 法 ,( 参 见 以 下 第 15-27 页"ProxyPullSupplier")。ProxyPullConsumer这 个 接 口 由 拉 型 提 供 者 应 用 使 用 , 它 提 供 connect_pull_supplier 方 法 , 此 方 法 用于 将 提 供 者 的 PullSupplier 派 生 的 对 象 连 接 到 EventChannel。 如 果ProxyConsumer 已 连 接 到 PullSupplier, 则 掷 出 AlreadyConnected 违 例 。module CosEventChannelAdmin {exception AlreadyConnected();interface ProxyPullConsumer :CosEventComm::PullConsumer {void connect_pull_supplier(in CosEventComm::PullSupplier pull_supplier)raises(AlreadyConnected);};};ProxyPushConsumer这 个 接 口 由 推 型 提 供 者 应 用 使 用 , 它 提 供 connect_push_supplier 方 法 , 此 方 法 用于 将 提 供 者 的 PushSupplier 派 生 的 对 象 连 接 到 EventChannel。 如 果ProxyConsumer 已 连 接 到 PullSupplier, 则 掷 出 AlreadyConnected 违 例 。module CosEventChannelAdmin {exception AlreadyConnected();interface ProxyPushConsumer :CosEventComm::PushConsumer {void connect_push_supplier(in CosEventComm::PushSupplier push_supplier)raises(AlreadyConnected);15-26 <strong>VisiBroker</strong> 开 发 者 指 南

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

Saved successfully!

Ooh no, something went wrong!