blob: 63ddf14c056d2d8c3ba13d3cd2fb3370fa4fc0de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
//=============================================================================
/**
* @file CosEventChannelFactory.idl
*
* $Id$
*
* @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 */
|