summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/XML_Helpers/test.rtd
blob: f9fa45574cfd9feb727a9af93200868129eb4871 (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
<?xml version="1.0"?> <!-- -*- SGML -*-  -->

<!-- If this file is moved to a different directory, make sure to change the
     path to the DTD below. Otherwise the examples won't work. -->
<!DOCTYPE rtcad_ext SYSTEM "../../docs/XML/ciao_rt_cad_ext.dtd">

<!-- Here is a sample real-time cad file extension descriptor. -->
<!-- Take a look at the RTCAD-example.cad to see how to associate -->
<!-- a componentassembly descriptor file with this file and how to -->
<!-- use the policy sets defined in this file. -->

<rtcad_ext>

  <!-- First, we need to define how we are going to allocate -->
  <!-- real-time related resources. -->
  <rtresources>

    <threadpoolwithlanes
                id="shared_pool"
                stacksize="0"
                borrowing="no"
                buffering="no"
                max_buffer="0"
                buffer_size="0">
      <lane priority="1"
            static_threads="100"
            dynamic_threads="300"/>
      <lane priority="2"
            static_threads="2"
            dynamic_threads="2"/>
      <lane priority="3"
            static_threads="1"
            dynamic_threads="2"/>
    </threadpoolwithlanes>

    <threadpool id="common_pool"
                stacksize="0"
                static_threads="10"
                dynamic_threads="20"
                priority="2"
                buffering="no"
                max_buffer="0"
                buffer_size="0"/>

    <threadpool id="high_prio_pool"
                stacksize="0"
                static_threads="2"
                dynamic_threads="2"
                priority="3"
                buffering="no"
                max_buffer="0"
                buffer_size="0"/>

    <threadpoolwithlanes
                id="laned_pool"
                stacksize="0"
                borrowing="no"
                buffering="no"
                max_buffer="0"
                buffer_size="0">
      <lane priority="1"
            static_threads="10"
            dynamic_threads="30"/>
      <lane priority="2"
            static_threads="3"
            dynamic_threads="3"/>
      <lane priority="3"
            static_threads="1"
            dynamic_threads="2"/>
    </threadpoolwithlanes>

    <connectionbands id="common_conn">
      <band low="1" high="1"/>
      <band low="2" high="2"/>
      <band low="3" high="3000"/>
    </connectionbands>
  </rtresources>

  <!-- Then, we define sets of policies that can be associated with -->
  <!-- containers (or <homeplacement> rather) -->

  <rtpolicyset id="POLICY_1">
    <priority_model_policy type="server_declared" priority="20"/>
    <threadpool_policy idref="shared_bool"/>
    <banded_connection_policy idref="common_conn"/>
  </rtpolicyset>

  <rtpolicyset id="POLICY_2">
    <threadpool_policy idref="common_pool"/>
    <priority_model_policy type="client_propagated" priority="10"/>
  </rtpolicyset>

</rtcad_ext>