summaryrefslogtreecommitdiff
path: root/ciao/Deployment_Events.idl
blob: 73e342d0ae7b1294a0c0d4d63562f56eed1a439a (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
92
93
94
// $Id$

/**
 * @file Deployment_Events.idl
 *
 * @brief A collection of IDL data types for CIAO pub/sub services deployment.
 *
 * @author Gan Deng
 */

#if !defined (CIAO_DEPLOYMENT_EVENT_SERVICES_IDL)
#define CIAO_DEPLOYMENT_EVENT_SERVICES_IDL

#include <orb.idl>

module CIAO
{
  module DAnCE
  {
    /// CIAO specific extension to describe pub/sub services in the deployment
    enum EventServiceType
    {
      EC,
      RTEC,
      NOTIFY,
      RTNOTIFY
    };

    /// Each element in the EventSourceSet denotes a event source id
    typedef string EventSourceId;

    typedef sequence<EventSourceId> EventSourceSet;

    /// Event Filters
    enum FilterType
    {
      CONJUNCTION,
      DISJUNCTION,
      LOGICAL_AND,
      NEGATE
    };

    struct EventFilter
    {
      string name;
      FilterType type;
      EventSourceSet sources;
    };
    typedef sequence<EventFilter> EventFilters;

    struct AddrServer
    {
      string name;
    };
    typedef sequence<AddrServer> AddrServers;

    struct UDPSender
    {
      string name;
    };
    typedef sequence<UDPSender> UDPSenders;

    struct UPDReceiver
    {
      string name;
    };
    typedef sequence<UPDReceiver> UPDReceivers;

    struct EventHandler
    {
      string name;
      boolean is_multicast;
    };
    typedef sequence<EventHandler> EventHandlers;

    /// CIAO specific extension to describe pub/sub services in the deployment
    struct EventServiceDeploymentDescription
    {
      string name;
      string node;
      EventServiceType type;
      string svc_cfg_file;

      EventFilters filters;
      UDPSenders senders;
      UPDReceivers receivers;
      EventHandlers ehs;
    };
    typedef sequence < EventServiceDeploymentDescription >
      EventServiceDeploymentDescriptions;
  };
};

#endif /* CIAO_DEPLOYMENT_EVENT_SERVICES_IDL */