2 //=============================================================================
4 * @file CosEventChannelFactory.idl
6 * @author Pradeep Gore <pradeep@cs.wustl.edu>
8 //=============================================================================
11 #ifndef TAO_COSEVENTCHANNELFACTORY_IDL
12 #define TAO_COSEVENTCHANNELFACTORY_IDL
14 #include
"orbsvcs/CosEventChannelAdmin.idl"
16 module CosEventChannelFactory
19 // Module that describes the Channel Factory.
21 exception DuplicateChannel
24 // This exception is raised to indicate that a specified
25 // channel already exists.
28 exception NoSuchChannel
31 // This exception is raised to indicate that a specified
32 // channel does not exist.
38 // This exception is raised to indicate that the EventChannel
39 // could not be registered with the naming service.
42 interface ChannelFactory
45 // Interface definition of the ChannelFactory.
48 // The ChannelFactory is used to create,destroy and
49 // locate CosEventChannels.
51 CosEventChannelAdmin
::EventChannel create
(
53 in boolean store_in_naming_service
) raises
(DuplicateChannel
, BindFailed
);
54 // Creates a CosEventChannel given a channel id.
55 // The DuplicateChannel exception is raised if the channel
57 // BindFailed is raised if we failed to register the newly created channel
58 // with the naming service.
62 in boolean unbind_from_naming_service
) raises
(NoSuchChannel
);
63 // Destroys the channel specified by the channel id.
64 // If the channel does not exist then the NoSuchChannel exception
67 CosEventChannelAdmin
::EventChannel find
(
68 in string channel_id
) raises
(NoSuchChannel
);
69 // Finds an EventChannel given the channel id.
70 // If the channel does not exist then the NoSuchChannel exception
73 string find_channel_id
(
74 in CosEventChannelAdmin
::EventChannel channel
) raises
(NoSuchChannel
);
75 // Returns a channel id given a reference to it.
76 // If the channel does not exist then the NoSuchChannel exception
81 #endif
/* TAO_COSEVENTCHANNELFACTORY_IDL */