summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/lib/RtecEventChannelAdmin.idl
blob: ec0147abbb96f836429d69161b8e2ed7e6ce5f95 (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
84
85
86
87
88
89
90
91
//
// $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 {
      long minor;
      long status;
      string name;
    };
    exception QOS_ERROR {
      long minor;
      long status;
      string name;
    };
    exception SUBSCRIPTION_ERROR {
      long minor;
      long status;
      string name;
    };
    exception CORRELATION_ERROR {
      long minor;
      long status;
      string name;
    };
    exception DISPATCH_ERROR {
      long minor;
      long status;
      string name;
    };
    ConsumerAdmin for_consumers();
    SupplierAdmin for_suppliers();

    void destroy();
  };

};