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.

接 口 引 用};};ProxyPullSupplier这 个 接 口 由 拉 型 接 收 者 应 用 使 用 , 它 提 供 connect_pull_consumer 方 法 , 此 方 法 用于 将 接 收 者 的 PullConsumer 派 生 的 对 象 连 接 到 EventChannel。 如 果ProxyConsumer 已 连 接 到 PullSupplier, 则 掷 出 AlreadyConnected 违 例 。module CosEventChannelAdmin {exception AlreadyConnected();interface ProxyPullSupplier :CosEventComm::PullSupplier {void connect_pull_consumer(in CosEventComm::PullConsumer pull_consumer)raises(AlreadyConnected);};};ProxyPushSupplier这 个 接 口 由 推 型 接 收 者 应 用 使 用 , 它 提 供 connect_push_consumer 方 法 , 此 方 法 用于 将 接 收 者 的 PushConsumer 派 生 的 对 象 连 接 到 EventChannel. 如 果ProxyConsumer 已 连 接 到 PullSupplier, 则 掷 出 AlreadyConnected 违 例module CosEventChannelAdmin {exception AlreadyConnected();interface ProxyPushSupplier :CosEventComm::PushSupplier {void connect_push_consumer(in CosEventComm::PushConsumer push_consumer)raises(AlreadyConnected);};};PullConsumer此 接 口 用 于 派 生 使 用 通 信 的 拉 式 模 型 的 接 收 者 对 象 。 每 当 接 收 者 向 提 供 者 索 取 数 据的 时 候 , 它 就 调 用 pull 方 法 。 如 果 提 供 者 已 被 断 开 , 则 会 掷 出 一 个 Disconnected违 例 。如 果 通 道 已 销 毁 , 则 用 disconnect_push_consumer 方 法 对 接 收 者 去 激 活 。module CosEventComm {exception Disconnected {};interface PullConsumer {void disconnect_pull_consumer();};};在 派 生 的 PullConsumer 类 中 必 须 使 用 的 唯 一 方 法 是 disconnect_pull_consumer ,它 用 于 将 PullConsumer 从 EventChannel 断 开 。 例 如 , 在 PullModel 实 例中 , PullSupplier 使 用 此 方 法 断 开 拉 型 接 收 者 。使 用 事 件 服 务 15-27

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

Saved successfully!

Ooh no, something went wrong!