summaryrefslogtreecommitdiff
path: root/TAO/examples/Callback_Quoter/Supplier.idl
blob: 2fa3950e06bd99b8017f22ac008f6e6a6e477064 (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
/* -*- C++ -*- */
// $Id$

#if !defined (_SUPPLIER_IDL)
#define _SUPPLIER_IDL

#include "Consumer.idl"

interface Supplier
{
  // = TITLE
  //   @@ Please fill in here.

  exception Invalid_Handle 
    {
      // = TITLE
      //   Consumer handle doesnt exist.
    };

  // @@ Make sure to put the comments AFTER the operation/method
  // names.

  // Register a distributed callback handler that is invoked
  // when the given stock reaches the desired threshold value.
  void register_callback (in string stock_name,
                          in long threshold_value,
                          in Callback_Quoter::Consumer consumer_handler)
    raises (Callback_Quoter::Invalid_Stock);

  // Remove the handler.
  void unregister_callback (in Callback_Quoter::Consumer consumer_handler)
    raises (Invalid_Handle);

  // get market status.
  void market_status (in string stock_name,
                      in long stock_value)
    raises (Callback_Quoter::Invalid_Stock);

  oneway void shutdown ();
  // shuts the server down.
};

#endif /* _SUPPLIER_IDL */