12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

接 口 引 用这 个 方 法 用 指 定 的 name、 debug 和 队 列 长 度 设 置 来 创 建 EventChannel。参 数static org.omg.CosEventChannelAdmin.EventChannel create_channel(String name, boolean debug);此 方 法 用 指 定 的 name 和 debug 设 置 创 建 EventChannel。 每 个 接 收 者 的 队 列 长 度 设定 为 100。static org.omg.CosEventChannelAdmin.EventChannel create_channel( String name);此 方 法 用 指 定 的 name 创 建 EventChannel。EventChannel 对 象 的 debug 标 志 设 定 为false 而 队 列 长 度 设 定 为 100。static org.omg.CosEventChannelAdmin.EventChannel create_channel( );此 方 法 创 建 EventChannel。 没 有 给 定 EventChannel 对 象 的 名 称 , debug 标 志 设定 为 false, 队 列 长 度 设 定 为 100。ConsumerAdmin说 明名 称 用 于 此 通 道 的 名 称 。debug如 果 设 定 为 true, 则 允 许 调 试 输 出 。 如 果 设 定为 false, 则 禁 止 调 试 输 出 。maxQueueLength可 以 为 每 个 接 收 者 加 入 队 列 的 消 息 的 最 大 数量 。参 数说 明名 称 用 于 此 通 道 的 名 称 。debug如 果 设 定 为 true, 则 允 许 调 试 输 出 。 如 果 设 定为 false, 则 禁 止 调 试 输 出 。参 数说 明名 称 用 于 此 通 道 的 名 称 。此 接 口 被 接 收 者 应 用 用 来 取 得 代 理 提 供 者 对 象 的 引 用 。 这 是 将 接 收 者 应 用 连 接 到EventChannel 的 第 二 个 步 骤 。module CosEventChannelAdmin {interface ConsumerAdmin {ProxyPushSupplier obtain_push_supplier();ProxyPullSupplier obtain_pull_supplier();};};如 果 发 起 调 用 的 接 收 者 应 用 是 用 推 式 模 型 实 现 的 , 则 调 用 obtain_push_supplier 方法 。 如 果 应 用 是 用 拉 式 模 型 实 现 的 , 则 应 该 调 用 obtain_pull_supplier 方 法 。使 用 事 件 服 务 15-25

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

Saved successfully!

Ooh no, something went wrong!