summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/allocation/application.xml
blob: 81848fa7e78c85e78a2ae58531657dfe90015b48 (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
<icegrid>

  <application name="Test">

    <server-template id="Glacier2">
      <parameter name="id"/>
      <parameter name="endpoints"/>
      <parameter name="verifier"/>
      <parameter name="manager"/>

      <server id="${id}" exe="${ice.bindir}/glacier2router">
        <property name="Glacier2.Client.Endpoints" value="${endpoints}"/>
        <property name="Glacier2.Server.Endpoints" value="tcp"/>
        <property name="Glacier2.SessionManager" value="${manager}"/>
        <property name="Glacier2.SSLSessionManager" value="TestIceGrid/SSLSessionManager"/>
        <property name="Glacier2.PermissionsVerifier" value="${verifier}"/>
        <property name="Glacier2.Client.Trace.Reject" value="0"/>
      </server>
    </server-template>

    <node name="localnode">

      <server-instance template="Glacier2" id="Glacier2"
                       endpoints="default -p 12347"
                       verifier="PermissionsVerifier"
                       manager="TestIceGrid/SessionManager"/>

      <server id="ObjectAllocation" exe="${server.dir}/server" activation="on-demand" pwd=".">
        <adapter name="Server" endpoints="default">
  	  <allocatable identity="allocatable" type="::Test"/>
  	  <allocatable identity="allocatablebis" type="::TestBis"/>

          <object identity="nonallocatable" type="::Test"/>
          <object identity="nonallocatable2" type="::NotAllocatable"/>
        </adapter>
      </server>

      <server id="PermissionsVerifier" exe="${verifier.dir}/verifier" activation="on-demand">
        <adapter name="PermissionsVerifier" endpoints="default">
          <object identity="PermissionsVerifier" type="::Glacier2::PermissionsVerifier"/>
        </adapter>
      </server>

      <server id="ServerAllocation" exe="${server.dir}/server" activation="on-demand" pwd="." allocatable="true">
        <adapter name="Server" endpoints="default" id="ServerAlloc">
  	  <allocatable identity="allocatable3" type="::TestServer1"/>
  	  <allocatable identity="allocatable4" type="::TestServer2"/>
  	  <object identity="allocatable4"/>

  	  <allocatable identity="allocatable31" type="::TestMultipleByServer"/>
  	  <allocatable identity="allocatable41" type="::TestMultipleByServer"/>
        </adapter>
      </server>

      <server id="ServerAllocation-1" exe="${server.dir}/server" activation="on-demand" pwd="." allocatable="true">
        <adapter name="Server" endpoints="default">
  	  <allocatable identity="allocatable5" type="::TestMultipleServer"/>
        </adapter>
      </server>

      <server id="ServerAllocation-2" exe="${server.dir}/server" activation="on-demand" pwd="." allocatable="true">
        <adapter name="Server" endpoints="default">
  	  <allocatable identity="allocatable6" type="::TestMultipleServer"/>
        </adapter>
      </server>

      <server id="ServerStress-1" exe="${server.dir}/server" activation="on-demand" pwd=".">
        <adapter name="Server" endpoints="default">
  	  <allocatable identity="stress-1" type="::StressTest"/>
  	  <allocatable identity="stress-2" type="::StressTestBis"/>
        </adapter>
      </server>

      <server id="ServerStress-2" exe="${server.dir}/server" activation="on-demand" pwd="." allocatable="true">
        <adapter name="Server" endpoints="default">
  	  <allocatable identity="stress-3" type="::StressTest"/>
  	  <allocatable identity="stress-4" type="::StressTestBis"/>
          <allocatable identity="concurrent-1" type="::TestConcurrent"/>
        </adapter>
      </server>

      <server id="ServerStress-3" exe="${server.dir}/server" activation="on-demand" pwd="." allocatable="true">
        <adapter name="Server" endpoints="default">
  	  <allocatable identity="stress-5" type="::StressTest"/>
  	  <allocatable identity="stress-6" type="::StressTestBis"/>
          <allocatable identity="concurrent-2" type="::TestConcurrent"/>
        </adapter>
      </server>

    </node>

  </application>

</icegrid>