blob: 9ad0eb583cbaaaa2f583bc2e95838c545be67f37 (
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
|
/**
* @file Distributor.idl
* @author Shanshan Jiang <shanshan.jiang@vanderbilt.edu>
* @author William R. Otte <wotte@dre.vanderbilt.edu>
* @author Douglas C. Schmidt <schmidt@dre.vanderbilt.edu>
* $Id$
* Contains IDL definitions for the Distributor in the Publish/Subscribe Real-time CORBA
* Stock Quoter Service.
*/
#ifndef QUOTER_DISTRIBUTOR_IDL
#define QUOTER_DISTRIBUTOR_IDL
#include "Common.idl"
#include "tao/RTCORBA/RTCORBA_include.pidl"
module Stock
{
exception Invalid_Subscription
{
};
/**
* @class StockDistributor
* @brief Provides interfaces for stock distributor server.
*/
interface StockDistributor : Trigger
{
/// Event source operation to establish connectivity.
/// @param c An object reference to the consumer the distributor should notify
/// @returns A cookie used to identify the subscription.
Cookie subscribe_notifier (in Stock::StockNameConsumer c,
in RTCORBA::Priority priority);
/// Opteration to discontinue connectivity.
/// @param ck The cookie that identifies the connection to be terminated.
Stock::StockNameConsumer unsubscribe_notifier (in Cookie ck)
raises (Invalid_Subscription);
/// Factory operation to return StockQuoter object reference.
/// @param The cookie returned from the call to subscribe notifier.
/// This is used to control the priority that the Quoter runs at.
StockQuoter provide_quoter_info (in Cookie ck)
raises (Invalid_Subscription);
/// Controls rate of updates.
attribute long notification_rate;
/// Shutdown the object and terminate the application
oneway void shutdown ();
};
/**
* @class StockDistributorHome
* @brief Interface that aids in managing StockDistributor lifecycles.
*/
interface StockDistributorHome
{
/// Create a StockDistributor object.
StockDistributor create ();
};
};
#endif
|