summaryrefslogtreecommitdiff
path: root/CIAO/ciao/Deployment_Events.idl
blob: 1d4d431287c203eae328abad4c95a0f9cdac93b9 (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
// $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;

    /// 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;
    };

    typedef sequence < EventServiceDeploymentDescription >
      EventServiceDeploymentDescriptions;
  };
};

#endif /* CIAO_DEPLOYMENT_EVENT_SERVICES_IDL */