summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/Deployment/Deployment_Events.idl
blob: b0559dfe164e2ac7b49ce77f3a00982c31c47d22 (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
95
// $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 "tao/StringSeq.pidl"

// EventServiceType definition
#include <ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl>

module CIAO
{
  module DAnCE
  {
    /// 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;
      unsigned short port;
      string address;
    };
    typedef sequence<AddrServer> AddrServers;

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

    struct UPDReceiver
    {
      string name;
      string addr_serv_id;
      boolean is_multicast;
      unsigned short listen_port;
    };
    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;
      AddrServers addr_servs;
      UDPSenders senders;
      UPDReceivers receivers;
    };
    typedef sequence < EventServiceDeploymentDescription >
      EventServiceDeploymentDescriptions;
  };
};

#endif /* CIAO_DEPLOYMENT_EVENT_SERVICES_IDL */