summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl
blob: 9ba626ba73efabd1aacec7fe7c00d0274b991247 (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
//
// $Id$
//
#include "RtecEventComm.idl"
#include "RtecScheduler.idl"

module RtecEventChannelAdmin {

  exception AlreadyConnected {};
  exception TypeError {};

  struct Dependency {
    RtecEventComm::Event event_;
    RtecScheduler::handle_t rt_info;
  };
  typedef sequence<Dependency> DependencySet;

  struct ConsumerQOS {
    DependencySet dependencies;
  };

  struct Publication {
    RtecEventComm::Event event_;
    RtecScheduler::Dependency_Info dependency_info_;
  };
  typedef sequence<Publication> PublicationSet;

  struct SupplierQOS {
    PublicationSet publications_;
  };

  interface ProxyPushConsumer: RtecEventComm::PushConsumer {
    oneway void connect_push_supplier(
		in RtecEventComm::PushSupplier push_supplier,
		in SupplierQOS qos);
        // raises(AlreadyConnected);
  };

  interface ProxyPushSupplier: RtecEventComm::PushSupplier {
    oneway void connect_push_consumer(
		in RtecEventComm::PushConsumer push_consumer,
		in ConsumerQOS qos);
      // raises(AlreadyConnected, TypeError);
  };

  // TODO: Find out the exception specs for the following interface's
  // methods.
  interface ConsumerAdmin {
    ProxyPushSupplier obtain_push_supplier();
  };
  interface SupplierAdmin {
    ProxyPushConsumer obtain_push_consumer();
  };

  interface EventChannel {
    exception SYNCHRONIZATION_ERROR {};
    exception QOS_ERROR {};
    exception SUBSCRIPTION_ERROR {};
    exception CORRELATION_ERROR {};
    exception DISPATCH_ERROR {};

    ConsumerAdmin for_consumers();
    SupplierAdmin for_suppliers();

    void destroy();
  };

};