coseventchannelfactory.idl

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· IDL 代码 · 共 84 行

IDL
84
字号
// CosEventChannelFactory.idl,v 1.4 1999/07/19 16:24:55 pradeep Exp

// ============================================================================
//
// = FILENAME
//    CosEventChannelFactory.idl
//
// = AUTHOR
//    Pradeep Gore <pradeep@cs.wustl.edu>
//
// ============================================================================

#ifndef TAO_COSEVENTCHANNELFACTORY_IDL
#define TAO_COSEVENTCHANNELFACTORY_IDL

#include "orbsvcs/CosEventChannelAdmin.idl"

module CosEventChannelFactory
{
  // = TITLE
  //   Module that describes the Channel Factory.
  //
  exception DuplicateChannel
  {
    // = TITLE
    //    This exception is raised to indicate that a specified
    //    channel already exists.
  };

  exception NoSuchChannel
  {
    // = TITLE
    //   This exception is raised to indicate that a specified
    //   channel does not exist.
  };

  exception BindFailed
  {
    // = TITLE
    //    This exception is raised to indicate that the EventChannel
    //    could not be registered with the naming service.
  };

  interface ChannelFactory
  {
    // = TITLE
    //   Interface definition of the ChannelFactory.
    //
    // = DESCRIPTION
    //   The ChannelFactory is used to create,destroy and
    //   locate CosEventChannels.

    CosEventChannelAdmin::EventChannel create (
      in string channel_id,
      in boolean store_in_naming_service) raises (DuplicateChannel, BindFailed);
    // Creates a CosEventChannel given a channel id.
    // The DuplicateChannel exception is raised if the channel
    // already exists.
    // BindFailed is raised if we failed to register the newly created channel
    // with the naming service.

    void destroy (
       in string channel_id,
       in boolean unbind_from_naming_service) raises (NoSuchChannel);
    // Destroys the channel specified by the channel id.
    // If the channel does not exist then the NoSuchChannel exception
    // is raised.

    CosEventChannelAdmin::EventChannel find (
       in string channel_id) raises (NoSuchChannel);
    // Finds an EventChannel given the channel id.
    // If the channel does not exist then the NoSuchChannel exception
    // is raised.

    string find_channel_id (
       in CosEventChannelAdmin::EventChannel channel) raises (NoSuchChannel);
   // Returns a channel id given a reference to it.
   // If the channel does not exist then the NoSuchChannel exception
   // is raised.
  };
};

#endif /* TAO_COSEVENTCHANNELFACTORY_IDL */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?